terragrunt: Set the version variable properly
This commit is contained in:
parent
d6c3e74425
commit
0c928f4a1d
2 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,10 @@ buildGoPackage rec {
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}")
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $bin/bin/terragrunt \
|
wrapProgram $bin/bin/terragrunt \
|
||||||
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
|
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
|
||||||
|
|
|
@ -17,6 +17,10 @@ buildGoPackage rec {
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}")
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $bin/bin/terragrunt \
|
wrapProgram $bin/bin/terragrunt \
|
||||||
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
|
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
|
||||||
|
|
Loading…
Reference in a new issue