terraform-providers: disable CGO, set ldflags
these are the defaults for publishing on the terraform registry
This commit is contained in:
parent
354ede9a78
commit
f49bd944c5
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ let
|
|||
inherit (data) vendorSha256 version;
|
||||
subPackages = [ "." ];
|
||||
doCheck = false;
|
||||
# https://github.com/hashicorp/terraform-provider-scaffolding/blob/a8ac8375a7082befe55b71c8cbb048493dd220c2/.goreleaser.yml
|
||||
# goreleaser (used for builds distributed via terraform registry) requires that CGO is disabled
|
||||
CGO_ENABLED = 0;
|
||||
ldflags = [ "-s" "-w" "-X main.version=${data.version}" "-X main.commit=${data.rev}" ];
|
||||
src = fetchFromGitHub {
|
||||
inherit (data) owner repo rev sha256;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue