mirror of
https://code.tvl.fyi/depot.git:/tools/nixery.git
synced 2025-03-15 06:01:51 +00:00
fix(build): Only take the first matching hash for source hashing
Some Nix download mechanisms will add a second hash in the store path, which had been added to the source hash output (breaking argument interpolation).
This commit is contained in:
parent
2a9fd2ced9
commit
4f6ce83f92
|
@ -23,7 +23,7 @@ rec {
|
|||
# builds to distinguish errors between deployed versions, see
|
||||
# server/logs.go for details.
|
||||
nixery-src-hash = pkgs.runCommand "nixery-src-hash" {} ''
|
||||
echo ${./.} | grep -Eo '[a-z0-9]{32}' > $out
|
||||
echo ${./.} | grep -Eo '[a-z0-9]{32}' | head -c 32 > $out
|
||||
'';
|
||||
|
||||
# Go implementation of the Nixery server which implements the
|
||||
|
|
Loading…
Reference in New Issue
Block a user