fulcio: 0.4.1 -> 0.5.2
https://github.com/sigstore/fulcio/releases/tag/v0.5.2 https://github.com/sigstore/fulcio/releases/tag/v0.5.1 https://github.com/sigstore/fulcio/releases/tag/v0.5.0
This commit is contained in:
parent
ad20aa1d0f
commit
b8083a98af
1 changed files with 8 additions and 8 deletions
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "fulcio";
|
pname = "fulcio";
|
||||||
version = "0.4.1";
|
version = "0.5.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sigstore";
|
owner = "sigstore";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-b+2M28cI+4UkzrIqI+BioxJsGqT0pqJVPTPmXe+NsZo=";
|
sha256 = "sha256-jNsW4eUpqa1a1itEnY1932ta3UpjLxhbHz9byM6/Rxo=";
|
||||||
# populate values that require us to use git. By doing this in postFetch we
|
# populate values that require us to use git. By doing this in postFetch we
|
||||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
|
@ -20,7 +20,7 @@ buildGoModule rec {
|
||||||
find "$out" -name .git -print0 | xargs -0 rm -rf
|
find "$out" -name .git -print0 | xargs -0 rm -rf
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
vendorSha256 = "sha256-INPMsSyjFs4GyapOlc/k5fcI2ePUKgp4BtASOKwQhck=";
|
vendorSha256 = "sha256-L+20HvkRAs00tbD5q1ATeLrKoa7VFQlrXChh7AtK0PI=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
@ -29,14 +29,14 @@ buildGoModule rec {
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
"-X github.com/sigstore/fulcio/pkg/api.gitVersion=v${version}"
|
"-X github.com/sigstore/fulcio/pkg/server.gitVersion=v${version}"
|
||||||
"-X github.com/sigstore/fulcio/pkg/api.gitTreeState=clean"
|
"-X github.com/sigstore/fulcio/pkg/server.gitTreeState=clean"
|
||||||
];
|
];
|
||||||
|
|
||||||
# ldflags based on metadata from git and source
|
# ldflags based on metadata from git and source
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
ldflags+=" -X github.com/sigstore/fulcio/pkg/api.gitCommit=$(cat COMMIT)"
|
ldflags+=" -X github.com/sigstore/fulcio/pkg/server.gitCommit=$(cat COMMIT)"
|
||||||
ldflags+=" -X github.com/sigstore/fulcio/pkg/api.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
ldflags+=" -X github.com/sigstore/fulcio/pkg/server.buildDate=$(cat SOURCE_DATE_EPOCH)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
@ -44,7 +44,7 @@ buildGoModule rec {
|
||||||
unset subPackages
|
unset subPackages
|
||||||
|
|
||||||
# skip test that requires networking
|
# skip test that requires networking
|
||||||
substituteInPlace pkg/config/config_test.go \
|
substituteInPlace pkg/config/config_network_test.go \
|
||||||
--replace "TestLoad" "SkipLoad"
|
--replace "TestLoad" "SkipLoad"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue