mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 15:07:50 +00:00
treewide: remove explicit -trimpath
from Go pkgs
This commit is contained in:
parent
63a052eb57
commit
fba7582947
@ -56,7 +56,7 @@ buildGoModule rec {
|
||||
];
|
||||
|
||||
# flags are based on https://github.com/richardwilkes/gcs/blob/master/build.sh
|
||||
flags = [ "-a -trimpath" ];
|
||||
flags = [ "-a" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/richardwilkes/toolbox/cmdline.AppVersion=${version}" ];
|
||||
|
||||
installPhase = ''
|
||||
|
@ -23,7 +23,6 @@ buildGoModule rec {
|
||||
doCheck = false;
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
GOFLAGS = [ "-trimpath" ];
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
|
@ -18,7 +18,6 @@ buildGoModule rec {
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
flags = [ "-trimpath" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
@ -18,7 +18,7 @@ buildGoModule rec {
|
||||
|
||||
# based on https://github.com/wader/jq-lsp/blob/master/.goreleaser.yml
|
||||
CGO_ENABLED = 0;
|
||||
GOFLAGS = [ "-trimpath" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
|
@ -17,8 +17,6 @@ buildGoModule rec {
|
||||
vendorHash = "sha256-rCGj2o59US2t/ckqXirEDgYn9dGvVSzMVcFEZosasBc=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
GO111MODULE = "on";
|
||||
GOFLAGS = "-trimpath";
|
||||
|
||||
subPackages = [ "cli/slsa-verifier" ];
|
||||
|
||||
|
@ -16,10 +16,6 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-KEW3ykEZvL6y1VacDIqtHW9B2RLHlHC29aqJjkEnRqQ=";
|
||||
|
||||
buildFlagArrays = [
|
||||
"-trimpath"
|
||||
];
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [
|
||||
|
Loading…
Reference in New Issue
Block a user