argocd: Fix build flags (#80545)
This commit is contained in:
parent
da45483b35
commit
8acd3c804d
1 changed files with 9 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue