scaleway-cli: add ldflags details

This commit is contained in:
techknowlogick 2022-04-18 00:15:02 -04:00 committed by ehmry
parent 922b173bf3
commit 38d5d60ddd

View File

@ -13,6 +13,16 @@ buildGoModule rec {
vendorSha256 = "sha256-aaYS0WqNa8997kdV38blUsYovtUHHtEUXCTG9vwv2ko="; vendorSha256 = "sha256-aaYS0WqNa8997kdV38blUsYovtUHHtEUXCTG9vwv2ko=";
ldflags = [
"-w"
"-extldflags"
"-static"
"-X main.Version=${version}"
"-X main.GitCommit=ref/tags/${version}"
"-X main.GitBranch=HEAD"
"-X main.BuildDate=unknown"
];
# some tests require network access to scaleway's API, failing when sandboxed # some tests require network access to scaleway's API, failing when sandboxed
doCheck = false; doCheck = false;