John Ericson
7cd4adde40
remote: Util -> Socket
2023-11-30 06:59:59 +01:00
John Ericson
ab201da448
remote: move StoreConfig to Types.StoreConfig, extend, add PreStoreConfig
2023-11-30 06:59:59 +01:00
Richard Marko
7590e2bec4
remote: move WorkerOp to Types.WorkerOp
2023-11-30 06:59:59 +01:00
Richard Marko
93d923eafb
remote: complete binary -> cereal transition
2023-11-30 06:59:59 +01:00
Richard Marko
655afaa2f8
remote: squash whitespace
2023-11-30 06:59:59 +01:00
John Ericson
e4271d6929
remote: add ProtoVersion
2023-11-30 06:59:59 +01:00
John Ericson
ca5faba4ba
Bidirectional worker op
...
Use dummy enum variants to fill the gaps so the Enum instance works
Co-Authored-By: Dan Bornside <dan.bornside@gmail.com>
2023-11-30 06:59:59 +01:00
Richard Marko
a2397f5b3f
remote: sort deps in cabal file
2023-11-30 06:59:59 +01:00
Richard Marko
92b83e8258
Merge pull request #270 from haskell-nix/srk/ci
...
CI updates
2023-11-29 21:16:37 +01:00
sorki
d78ce4aa3c
remove dependabot
2023-11-29 18:20:13 +01:00
sorki
f2f6541f15
ci: update, restore cachix step
2023-11-29 18:19:03 +01:00
sorki
134f1313af
cabal.project: test: true benchmarks: true
2023-11-29 18:19:03 +01:00
Richard Marko
0c692e9afe
Merge pull request #267 from haskell-nix/docs
...
init docs
2023-11-29 05:35:08 +01:00
sorki
43711d4592
init docs
...
Closes #250
2023-11-28 17:11:42 +01:00
Richard Marko
d8e337513f
Merge pull request #264 from squalus/fingerprint
...
core: add fingerprints
2023-11-27 14:12:00 +01:00
Richard Marko
12fa758ae5
core: fix fingerprint functions haddock
2023-11-27 07:45:31 +01:00
squalus
ac7184be2c
core: add fingerprints
2023-11-26 11:36:18 -08:00
Richard Marko
c1d45dcd9c
Merge pull request #260 from vaibhavsagar/updateExecutablePermissions
...
Set executable permissions once instead of multiple times
2023-11-26 06:43:43 +01:00
Vaibhav Sagar
408cf093ea
Set executable permissions once instead of multiple times
2023-11-26 15:42:52 +11:00
Richard Marko
48b4891693
Merge pull request #259 from haskell-nix/nar-is-exec
...
Replace permissions with `narIsExec` effect
2023-11-25 15:01:32 +01:00
Vaibhav Sagar
0ea7647d7e
Replace permissions with narIsExec
effect
...
Co-Authored-By: Shea Levy <shea@shealevy.com>
2023-11-25 21:07:07 +11:00
Richard Marko
11797c6c41
Merge pull request #258 from vaibhavsagar/cereal-test-suite
...
Use `cereal` instead of `binary` in -nar test suite
2023-11-25 07:38:10 +01:00
Richard Marko
414bae5f54
nar: drop commented out instance Binary Nar
2023-11-25 05:49:14 +01:00
Richard Marko
1c401b6abf
Merge pull request #257 from squalus/sig-text
...
core: add signatureToText function and tests
2023-11-25 05:39:53 +01:00
Vaibhav Sagar
5d62b66aa1
Use cereal
instead of binary
in test suite
2023-11-25 13:19:16 +11:00
squalus
7850a38b3a
core: add signatureToText function and tests
...
- make NarSignature's Show instance more legible
- add Arbitrary instance for NarSignature
- add roundtrip quickcheck tests for NarSignature encoding
2023-11-24 12:55:54 -08:00
Richard Marko
ee10c59e4c
Merge pull request #256 from squalus/crypton
...
switch to crypton
2023-11-24 07:07:24 +01:00
squalus
c6a579273f
switch to crypton
...
cryptonite is unmaintained. Replace it with crypton.
Closes #239 .
2023-11-23 10:22:19 -08:00
Richard Marko
2e0c9b2209
Merge pull request #254 from squalus/sigs
...
add signature decoding
2023-11-23 07:36:57 +01:00
Richard Marko
e9a7bbc107
core: add comment for test credits
...
Related to #240
2023-11-23 06:14:35 +01:00
Richard Marko
1fd1d1118b
ci: nuke install libsodium-dev step
2023-11-23 06:14:31 +01:00
squalus
3710c6a445
add signature decoding
...
- add NarSignature decoding
- use cryptonite instead of saltine for signature
- remove saltine dependency
- add signature decode and verify tests taken from tvix
- start decoding signatures in queryPathInfoUncached
Closes #240 and #246
2023-11-22 15:19:03 -08:00
Richard Marko
4d9d595ab8
Merge pull request #247 from haskell-nix/srk/split2
...
Split part 2
2023-11-22 13:22:01 +01:00
Richard Marko
cce2c98426
move getStoreDir to remote, drop mtl from core
2023-11-22 11:30:10 +01:00
Richard Marko
4b481cff41
core: sort deps in cabal file
2023-11-22 11:16:17 +01:00
Richard Marko
a0a6b0de6a
core: CHANGELOG
2023-11-22 11:16:17 +01:00
Richard Marko
9a333cc1f0
core: rename format-tests testsuite to core
2023-11-22 11:16:17 +01:00
Richard Marko
317603038e
core: set me as a maintainer
2023-11-22 11:16:17 +01:00
Richard Marko
69a02d3066
init hnix-store-nar
...
Closes #233
2023-11-22 11:16:17 +01:00
Richard Marko
72524cfc09
init hnix-store-readonly
...
Closes #235
2023-11-22 10:44:46 +01:00
Richard Marko
c7e66bb01f
hide StorePath constructor, add unsafeMakeStorePath
2023-11-22 09:50:40 +01:00
Richard Marko
a61070144e
redo conctructor hiding
2023-11-22 09:43:08 +01:00
Richard Marko
862cceffdc
Add PathFilter newtype to System.Nix.Store.Types
2023-11-22 09:11:58 +01:00
Richard Marko
152ce6f8ef
add RepairMode to System.Nix.Store.Types
2023-11-22 09:07:14 +01:00
Richard Marko
8ac46de0bd
Recursive -> FileIngestionMethod, remove Bools
...
Actually the same thing, now with prefixed constructors
for extra clarity.
Closes #238
2023-11-22 09:07:14 +01:00
Richard Marko
f6b06e0005
Add tests for ReadOnlyStore
2023-11-22 09:07:14 +01:00
Richard Marko
111daefe1e
hie.yaml: add db and tests
2023-11-22 09:07:14 +01:00
Richard Marko
b1c8603adc
core: add custom Show instance for StorePath
...
before
```
StorePath {storePathHash = StorePathHashPart {unStorePathHashPart = "#F\139i\215:t\134x\151+\206\&8O*\165\STX\DC2\169\234"}, storePathName = StorePathName {unStorePathName = "testFixed"}}
```
after
```
StorePath /iali40m5597kikibjxw8cx1ssxlqnii3-testFixed
```
2023-11-22 09:07:14 +01:00
Richard Marko
6e2c03a398
Merge pull request #244 from squalus/qpi-ca
...
remote: fix queryPathInfoUncached missing content address decoding
2023-11-22 09:06:57 +01:00
Richard Marko
436f46ac67
Merge pull request #243 from squalus/qpi-base16
...
remote: fix queryPathInfoUncached narHash decoding
2023-11-22 07:59:38 +01:00