John Ericson
43fc6d4bf2
Clean up content address method types
...
This corresponds to
b51e161af5
and part of
ed26b186fb
2024-10-31 10:54:12 -04:00
sorki
f29a0a0dc4
treewide: update changelogs
2024-07-31 17:06:46 +02:00
sorki
dfec03d1dc
treewide: move CHANGELOG to extra-doc-files
2024-07-31 17:06:46 +02:00
sorki
d7101a7981
treewide: deadname
2024-07-31 17:06:46 +02:00
sorki
7dc5c596aa
tests: add/move Test.Hspec.Nix.forceRight from json
2023-12-07 16:35:16 +01:00
sorki
bdce1a3035
tests: enable TypeFamilies for Realisation
2023-12-07 16:35:16 +01:00
sorki
1bda8fd1fe
add derivationOutput(Parser|Builder), prop
2023-12-07 16:35:16 +01:00
sorki
e6ed8f8069
single BuildResult to rule them all
2023-12-07 16:35:16 +01:00
sorki
ee4ad7b07b
add builtOutputs to BuildResult, more legwork
2023-12-07 16:35:16 +01:00
sorki
225b4d3f5a
tests: limit the size of list for OutputName, StorePath name generators
2023-12-07 16:35:16 +01:00
sorki
25778c1dcd
core: add System.Nix.Realisation
2023-12-07 16:35:16 +01:00
sorki
2f73cd9aef
core: add System.Nix.OutputName
2023-12-07 16:35:16 +01:00
sorki
06935815c6
core: makeStorePathName -> mkStorePathName
2023-12-07 16:35:16 +01:00
sorki
8936300fbe
core,remote: add OldBuildResult as it is the one we claim to support now
2023-12-07 16:35:16 +01:00
sorki
2cd4c32b84
tests: custom Arbitrary Metadata instance with forced SHA256 metadataNarHash, w/o (Just0) metadataNarBytes
2023-12-07 16:35:16 +01:00
sorki
fb1bcfdb61
prefix BuildResult fields
2023-12-07 16:35:16 +01:00
sorki
265d25256d
core: split signature/narSignature parser/builder
2023-12-06 16:25:38 +01:00
sorki
c815068e60
tests: add custom Arbitrary (Maybe Text) that doesn't generate Just mempty
2023-12-06 16:25:38 +01:00
sorki
a7fbcf7a02
tests: custom Arbitrary BuildResult without Just mempty errorMessage
2023-12-06 16:25:38 +01:00
sorki
cc931dde1e
tests: custom Arbitrary UTCTime instance, drop quickcheck-instances
...
in favor of our own small set of required instances.
2023-12-06 16:25:38 +01:00
sorki
4e224c3f43
tests: custom Arbitrary OutputsSpec producing nonempty OutputsSpec_Names
2023-12-06 16:25:38 +01:00
sorki
91befa2a3c
core: fix parseDerivedPath breaking when StoreDir contains exclamation mark
2023-12-06 16:25:38 +01:00
sorki
ee4049d36e
tests: shave off other hashes todo for StorePathHashPart
2023-11-30 06:59:59 +01:00
sorki
a9be986781
tests: add Arbitrary StorePathTrust, Arbitrary (Metadata StorePath)
2023-11-30 06:59:59 +01:00
sorki
2e4e83c578
tests: add Arbitrary (Some HashAlgo)
2023-11-30 06:59:59 +01:00
sorki
9b16abbac7
tests: add Arbitrary BaseEncoding
2023-11-30 06:59:59 +01: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
squalus
c6a579273f
switch to crypton
...
cryptonite is unmaintained. Replace it with crypton.
Closes #239 .
2023-11-23 10:22:19 -08: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
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
ee40d47a67
tests: add Test.Hspec.Nix.roundtrip
2023-11-20 09:22:05 +01:00
Richard Marko
49dc678060
bump core version to 0.8, add lower bound to db & test
...
bump for remote
2023-11-20 09:22:05 +01:00
Richard Marko
541abd1e20
core: Base, wrap comment, trim whitespace
2023-11-20 09:22:05 +01:00
Richard Marko
42f56f504f
hnix-store-tests: init
...
Split from `-core` so it doesn't depend on quickcheck,
generic-arbitrary and quickcheck-instances that could propagate downstrem.
Also allows users to defined their own.
With all roundtrip property tests.
Later this should also absorb test nix-store/daemon harness from
`-remote` so it can be reused by others.
2023-11-20 09:22:05 +01:00