Skip to content

Commit

Permalink
Identify real issue (NixOS#3695) and hack around it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jun 13, 2020
1 parent 08ee366 commit 953ceba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/ipfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ nix-store --generate-binary-cache-key $SIGNING_KEY_NAME $SIGNING_KEY_PRI_FILE $S
################################################################################

mkdir -p $IPFS_SRC_STORE
mkdir $IPFS_SRC_STORE/nar
storePaths=$(nix-build ./fixed.nix -A good)
storePaths=$(nix-build ./fixed.nix -A good | sort | uniq)

nix copy --to file://$IPFS_SRC_STORE $storePaths
# Hack around https://github.com/NixOS/nix/issues/3695
for path in $storePaths; do
nix copy --to file://$IPFS_SRC_STORE $path
done
unset path

nix sign-paths --store file://$IPFS_SRC_STORE \
-k $SIGNING_KEY_PRI_FILE $storePaths
Expand Down

0 comments on commit 953ceba

Please sign in to comment.