argocd: Fix build flags (#80545)

This commit is contained in:
Shahrukh Khan 2020-02-20 06:48:39 +05:00 committed by GitHub
parent da45483b35
commit 8acd3c804d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
buildGoModule rec {
pname = "argocd";
version = "1.4.2";
commit = "48cced9d925b5bc94f6aa9fa4a8a19b2a59e128a";
src = fetchFromGitHub {
owner = "argoproj";
@ -16,6 +17,14 @@ buildGoModule rec {
nativeBuildInputs = [ packr ];
patches = [ ./use-go-module.patch ];
buildFlagsArray = ''
-ldflags=
-X github.com/argoproj/argo-cd/common.version=${version}
-X github.com/argoproj/argo-cd/common.buildDate=unknown
-X github.com/argoproj/argo-cd/common.gitCommit=${commit}
-X github.com/argoproj/argo-cd/common.gitTreeState=clean
'';
# run packr to embed assets
preBuild = ''