Skip to content

Commit

Permalink
Problem: released binary don't record commit hash (#1607)
Browse files Browse the repository at this point in the history
* Problem: ci build might update flake lock file

Solution:
- make it fail

* don't allow dirty

* fix rev
  • Loading branch information
yihuang authored Sep 25, 2024
1 parent 943495d commit f179fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
go = super.go_1_22;
test-env = final.callPackage ./nix/testenv.nix { };
cronos-matrix = final.callPackage ./nix/cronos-matrix.nix {
inherit rev;
bundle-exe = final.pkgsBuildBuild.callPackage nix-bundle-exe { };
};
testground-image = final.callPackage ./nix/testground-image.nix { };
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build() {
fi
fi
echo "building $FLAKE"
nix build -L "$FLAKE"
nix build --no-update-lock-file --no-allow-dirty -L "$FLAKE"
cp result "cronos_${ref_name_clean:1}${network}_${name}.tar.gz"
}

Expand Down

0 comments on commit f179fa2

Please sign in to comment.