chore(3p/go): make hashes more deterministicerer
Because this is using %h, we're subject to the whims of the remote in trying to make sure that we get a consistent commit hash length in the VERSION stamp. Change-Id: I716193c1440ec367880b6a5f7dfa4f85a11c19a9
This commit is contained in:
parent
ab7ef0c547
commit
22821b886b
1 changed files with 2 additions and 2 deletions
4
third_party/default.nix
vendored
4
third_party/default.nix
vendored
|
@ -198,11 +198,11 @@ in exposed.lib.fix(self: exposed // {
|
||||||
# gave me `go tool go2go`.
|
# gave me `go tool go2go`.
|
||||||
rev = "ad307489d41133f32c779cfa1b0db4a852ace047";
|
rev = "ad307489d41133f32c779cfa1b0db4a852ace047";
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
sha256 = "0wxa1zawvmf0hflrb42qi1ggrj28nwr8vjmmygnxny8f00xi8198";
|
sha256 = "1nxmqdlyfx7w3g5vhjfq24yrc9hwpsa2mjv58xrmhh8vvy50ziqq";
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
cd $out
|
cd $out
|
||||||
${nixpkgs.git}/bin/git log -n 1 "--format=format: +%h %cd" HEAD > VERSION
|
${nixpkgs.git}/bin/git log -n 1 "--format=format:devel +%H %cd" HEAD > VERSION
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue