mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 21:18:34 +00:00
treewide: remove explicit -buildid=
from buildGoModules invocations This is now always set by buildGoModule.
This commit is contained in:
parent
891a634876
commit
77d6ba8a4c
@ -13,7 +13,7 @@ buildGoModule rec {
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" "-buildid=" ];
|
||||
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ];
|
||||
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
ldflags = [ "-s" "-w" "-buildid=" "-X github.com/sigstore/gitsign/pkg/version.gitVersion=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/sigstore/gitsign/pkg/version.gitVersion=${version}" ];
|
||||
|
||||
preCheck = ''
|
||||
# test all paths
|
||||
|
@ -18,7 +18,7 @@ buildGoModule rec {
|
||||
vendorHash = "sha256-5U9ql0wszhr5H3hAo2utONuEh4mUSiO71XQHkAnMhZU=";
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
ldflags = [ "-s" "-w" "-buildid=" "-X github.com/gomods/athens/pkg/build.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X github.com/gomods/athens/pkg/build.version=${version}" ];
|
||||
|
||||
subPackages = [ "cmd/proxy" ];
|
||||
|
||||
|
@ -16,7 +16,7 @@ buildGo121Module rec {
|
||||
vendorHash = "sha256-RsjUPLe8omoN+XGyNhHDxzNfZR7VVTkh/f/On1oCRqM=";
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
ldflags = [ "-s" "-w" "-buildid=" "-X main.version=${version}" ];
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
flags = [ "-trimpath" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -21,7 +21,11 @@ buildGoModule rec {
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
|
||||
ldflags = "-s -w -X main.version=v${version}";
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=v${version}"
|
||||
];
|
||||
|
||||
checkFlags = [
|
||||
# Requires network access (Error: module lookup disabled by GOPROXY=off).
|
||||
|
@ -20,7 +20,7 @@ buildGoModule rec {
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
GOFLAGS = [ "-trimpath" ];
|
||||
ldflags = [ "-buildid=" "-w" ];
|
||||
ldflags = [ "-w" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
||||
vendorHash = "sha256-zeiOcn33PnyoseYb0wynkn7MfGp3rHEYBStY98C6aR8=";
|
||||
|
||||
ldflags = [
|
||||
"-w" "-s" "-buildid="
|
||||
"-w" "-s"
|
||||
"-X github.com/xjasonlyu/tun2socks/v2/internal/version.Version=v${version}"
|
||||
"-X github.com/xjasonlyu/tun2socks/v2/internal/version.GitCommit=v${version}"
|
||||
];
|
||||
|
@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
# https://github.com/Mic92/nix-update/pull/95
|
||||
vendorHash = "sha256-pC3KXx1KBvQx6eZZG1czaGjCOd0xAB42B5HmKn7p52c=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-buildid=" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
subPackages = [ "main" ];
|
||||
|
||||
|
@ -26,7 +26,7 @@ buildGoModule rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [ "-s" "-w" "-buildid=" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
subPackages = [ "main" ];
|
||||
|
||||
installPhase = ''
|
||||
|
@ -27,7 +27,6 @@ buildGoModule rec {
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-buildid="
|
||||
"-X sigs.k8s.io/release-utils/version.gitVersion=${version}"
|
||||
];
|
||||
|
||||
|
@ -23,10 +23,6 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-AXMMpzXEhdKSGeVg/KK2NEgalxIXP6DUTcoxOQVqow4=";
|
||||
|
||||
ldflags = [
|
||||
"-buildid="
|
||||
];
|
||||
|
||||
nativeBuildInputs = lib.optionals hsmSupport [
|
||||
pkg-config
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user