treewide: remove explicit -buildid=

from buildGoModules invocations

This is now always set by buildGoModule.
This commit is contained in:
Paul Meyer 2023-12-24 21:14:12 +01:00
parent 891a634876
commit 77d6ba8a4c
11 changed files with 13 additions and 14 deletions

View File

@ -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 = [ "." ];

View File

@ -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

View File

@ -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" ];

View File

@ -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; {

View File

@ -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).

View File

@ -20,7 +20,7 @@ buildGoModule rec {
CGO_ENABLED = 0;
GOFLAGS = [ "-trimpath" ];
ldflags = [ "-buildid=" "-w" ];
ldflags = [ "-w" ];
doCheck = false;

View File

@ -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}"
];

View File

@ -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" ];

View File

@ -26,7 +26,7 @@ buildGoModule rec {
doCheck = false;
ldflags = [ "-s" "-w" "-buildid=" ];
ldflags = [ "-s" "-w" ];
subPackages = [ "main" ];
installPhase = ''

View File

@ -27,7 +27,6 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-buildid="
"-X sigs.k8s.io/release-utils/version.gitVersion=${version}"
];

View File

@ -23,10 +23,6 @@ buildGoModule rec {
vendorHash = "sha256-AXMMpzXEhdKSGeVg/KK2NEgalxIXP6DUTcoxOQVqow4=";
ldflags = [
"-buildid="
];
nativeBuildInputs = lib.optionals hsmSupport [
pkg-config
];