Commit Graph

326 Commits

Author SHA1 Message Date
Anton Latukha
9a9ebb5434 core: test: NarFormat: m doc 2021-11-04 14:27:05 +02:00
hololeap
b0ee7fd6a2 Add GHC.Stats import to NarFormat test
This is needed for the tests to compile on my system.
Without the import, `max_live_bytes` and `getRTSStats` are undefined.
2021-11-04 14:21:19 +02:00
dependabot[bot]
96db83674f Bump cachix/cachix-action from 7 to 10
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 7 to 10.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v7...v10)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-04 14:04:50 +02:00
dependabot[bot]
1ba5a73b7b Bump cachix/install-nix-action from 12 to 14.1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 12 to 14.1.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...v14.1)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-04 14:04:38 +02:00
Anton Latukha
9f9ea28775 add dependabot 2021-11-04 14:03:08 +02:00
Anton Latukha
5e55781516
Merge #166: Use relude, default language extensions, {,text} clean-up 2021-08-09 15:06:23 +03:00
Anton-Latukha
916624b373
Core: tests: Hash: spec_hash: refactor 2021-08-07 02:51:08 +03:00
Anton-Latukha
2bf02a92d8
Core: tests: Hash: spec_nixhash: refactor 2021-08-07 01:56:06 +03:00
Anton-Latukha
6318ff163b
Remote: (Right -> pure) 2021-08-06 19:52:52 +03:00
Anton-Latukha
04333808af
Remote: tests: NixDaemon: mockedEnv: refactor 2021-08-06 19:29:03 +03:00
Anton-Latukha
bc000b4c6b
Remote: clean-up imports 2021-08-06 19:29:03 +03:00
Anton-Latukha
5b1b51306a
Core: clean-up imports 2021-08-06 19:29:02 +03:00
Anton-Latukha
a93cba03c9
treewide: hlint refactor 2021-08-06 19:29:02 +03:00
Anton-Latukha
75c810423a
treewide: hlint refactor 2021-08-06 19:29:02 +03:00
Anton-Latukha
2b58d3e510
treewide: use lift 2021-08-06 19:29:02 +03:00
Anton-Latukha
3fe7fce9e8
treewide: use lift 2021-08-06 19:29:02 +03:00
Anton-Latukha
f27d5c15be
treewide: use ask{,s} 2021-08-06 19:29:02 +03:00
Anton-Latukha
54a7c92791
treewide: use WriteMode 2021-08-06 19:29:02 +03:00
Anton-Latukha
d2970b9f01
treewide: use ReadMode 2021-08-06 19:29:02 +03:00
Anton-Latukha
8f932bd6ee
treewide: use decodeUtf8 2021-08-06 19:29:01 +03:00
Anton-Latukha
0789f253c8
treewide: use toString 2021-08-06 19:29:01 +03:00
Anton-Latukha
99da38fa83
treewide: use withFile 2021-08-06 19:29:01 +03:00
Anton-Latukha
c1d54c8886
treewide: use toLText 2021-08-06 19:29:01 +03:00
Anton-Latukha
5d22b9450a
treewide: use pass 2021-08-06 19:29:01 +03:00
Anton-Latukha
c00dedcd3a
treewide: use toText 2021-08-06 19:29:01 +03:00
Anton-Latukha
80f27bb836
Core: Derivation: refactor 2021-08-06 19:29:01 +03:00
Anton-Latukha
e350ee4f60
Core: tests: NarFormat: (data -> newtype) Nar 2021-08-06 19:29:01 +03:00
Anton-Latukha
c4183d22d2
treewide: (LANGUAGE -> language) 2021-08-06 19:29:01 +03:00
Anton-Latukha
8e3955f6a1
Core: cabal: declare default-extensions 2021-08-06 19:29:01 +03:00
Anton-Latukha
f555947627
Remote: use relude as Prelude 2021-08-06 19:28:56 +03:00
Anton-Latukha
3abca41eed
Remote: cabal: declare default-extensions 2021-08-06 17:55:36 +03:00
Anton-Latukha
ef6343be35
Core: use relude as Prelude 2021-08-06 17:55:32 +03:00
Anton-Latukha
eb550bd615
Remote: tests: NixDaemon: refactor 2021-08-06 17:43:23 +03:00
Anton-Latukha
39b55ad645
Core: tests: treewide refactor 2021-08-06 17:43:23 +03:00
Anton-Latukha
9f459aca05
Remote: treewide refactor 2021-08-06 17:43:23 +03:00
Anton-Latukha
b816f41170
treewide: clean-up language extensions 2021-08-06 17:43:23 +03:00
Anton-Latukha
3f5d9092df
{Code, Remote}: require base >=4.12 (GHC 8.6) 2021-08-06 17:43:22 +03:00
Anton-Latukha
21bce33202
CI: GHC (9.0 - 8.6) 2021-08-06 17:43:22 +03:00
Anton-Latukha
bca4094003 Remote: proclaim 0.5.0.0 2021-06-11 01:42:19 +03:00
Anton-Latukha
5a0171daa3 Remote: ChangeLog: prepare to 0.5 2021-06-11 01:42:19 +03:00
Anton Latukha
3b948d112a
Remote: port to Core (0.5) migration to cryptonite (#161)
Core migrated from `cryptohash` to `cryptonite`, interfaces changed, therefore
the update.
2021-06-10 21:09:11 +03:00
Anton-Latukha
98da3481db Core: proclaim 0.5 2021-06-10 17:23:23 +03:00
Anton-Latukha
8c67482a67 Core: prepare ChangeLog for 0.5.0.0 release 2021-06-10 17:23:23 +03:00
Anton Latukha
ad4642bf4b
Merge #157: migration (cryptohash-* -> cryptonite) 2021-06-10 15:27:16 +03:00
Anton-Latukha
e4948a9fe1
Core: upd ChangeLog after migration to cryptonite 2021-06-10 15:24:29 +03:00
Anton-Latukha
97146b41cc
treewide: migrate crypto(hash-* -> nite)
Reference:

Main cause:

https://github.com/haskell-hvr/cryptohash-sha512/issues/7

The whole `cryptohash-*` package family is abandoned, there is no
signs of maintainer activity there, so it stopped following Haskell ecosystem &
`base` releases. Knowing the human history & situation around it - it would not
be reviwed, which gives experience to not hardcode on the (specifically when
emotional) dependency.

Experience I drawn from this story is to keep things simplier when possible &
have more flexible systems as a result code.
It was "a bit too much" for what hashing is, for the code to have 2 hashing type
systems (external & internal) & reinventment of `HashAlgorithm` type duplicate.
The whole code was really rigid with a lot of type applicating the data kinds,
those are dependent type features & should be used cautiously, since interface
became rigid to changes, so afterwards it is easier & effective to dismantle
and recreate the subsystem then to evolve it.

Previous hashing history:
https://github.com/haskell-nix/hnix-store/issues/156
https://github.com/haskell-nix/hnix-store/issues/142
https://github.com/haskell-nix/hnix-store/pull/93
https://github.com/haskell-nix/hnix-store/issues/92
https://github.com/haskell-nix/hnix-store/issues/90
https://github.com/haskell-nix/hnix-store/issues/83
https://github.com/haskell-nix/hnix-store/pull/64
https://github.com/haskell-nix/hnix-store/pull/38
https://github.com/haskell-nix/hnix-store/pull/32
https://github.com/haskell-nix/hnix-store/pull/31
https://github.com/haskell-nix/hnix-store/pull/28
https://github.com/haskell-nix/hnix-store/pull/27
https://github.com/haskell-nix/hnix-store/pull/25
https://github.com/haskell-nix/hnix-store/issues/18
https://github.com/haskell-nix/hnix-store/pull/14
2021-06-10 15:17:40 +03:00
Anton-Latukha
3ecbb2f5a5
Core: tests: NarFormat: m clean-up 2021-06-10 13:18:41 +03:00
Anton-Latukha
f395a0aba0
Core: Internal.Nar.Streamer: explicit export list 2021-06-10 13:18:41 +03:00
Anton-Latukha
8c7dc152d9
Core: Internal.Nar.Parser: explicit export list 2021-06-10 13:18:41 +03:00
Anton-Latukha
1200a4839f
Core: Internal.Truncation: explicit export list 2021-06-10 13:18:41 +03:00