mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 06:09:02 +00:00
prometheus: Fix update script to handle ordering between pnpm and Go deps
This commit is contained in:
@@ -49,9 +49,22 @@ cat > "$SOURCE_NIX" <<-EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
VENDOR_HASH=$(extractHash prometheus.goModules)
|
||||
# Resolve pnpm hash first: the Go integration pulls in the assets, so a fake
|
||||
# pnpmDepsHash makes that stage fail.
|
||||
PNPM_DEPS_HASH=$(extractHash prometheus.assets.pnpmDeps)
|
||||
|
||||
cat > "$SOURCE_NIX" <<-EOF
|
||||
{
|
||||
version = "$TARGET_VERSION";
|
||||
hash = "$PREFETCH_HASH";
|
||||
pnpmDepsHash = "$PNPM_DEPS_HASH";
|
||||
vendorHash = "$FAKE_HASH";
|
||||
}
|
||||
EOF
|
||||
|
||||
# Now do the Go module fetch.
|
||||
VENDOR_HASH=$(extractHash prometheus.goModules)
|
||||
|
||||
cat > "$SOURCE_NIX" <<-EOF
|
||||
{
|
||||
version = "$TARGET_VERSION";
|
||||
|
||||
Reference in New Issue
Block a user