Merge pull request #297599 from devusb/kubectl-gadget

kubectl-gadget: match ldflags to upstream
This commit is contained in:
Nick Cao 2024-03-21 08:39:07 -04:00 committed by GitHub
commit 94ee7d64cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,8 @@ buildGoModule rec {
ldflags = [
"-s" "-w"
"-X main.version=v${version}"
"-X github.com/inspektor-gadget/inspektor-gadget/cmd/common.version=v${version}"
"-X main.gadgetimage=ghcr.io/inspektor-gadget/inspektor-gadget:v${version}"
"-extldflags=-static"
];
@ -32,6 +33,6 @@ buildGoModule rec {
mainProgram = "kubectl-gadget";
homepage = "https://inspektor-gadget.io";
license = licenses.asl20;
maintainers = with maintainers; [ kranurag7 ];
maintainers = with maintainers; [ kranurag7 devusb ];
};
}