-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for copying CA derivations outputs
- Loading branch information
1 parent
2a3707d
commit 4e715de
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
source common.sh | ||
|
||
clearStore | ||
clearCache | ||
|
||
commonArgs=( \ | ||
--experimental-features 'nix-command flakes ca-derivations ca-references' \ | ||
--file ./content-addressed.nix \ | ||
-v | ||
) | ||
|
||
|
||
# Fill the remote cache | ||
nix copy --to file://$cacheDir "${commonArgs[@]}" | ||
clearStore | ||
|
||
# Fetch the otput from the cache | ||
nix copy --from file://$cacheDir --no-require-sigs "${commonArgs[@]}" | ||
|
||
# Ensure that everything is locally present | ||
nix build "${commonArgs[@]}" -j0 --no-link |