Skip to content

Commit

Permalink
treewide: CGO_ENABLED -> env.CGO_ENABLED
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 20, 2025
1 parent cdce06c commit 5105256
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/by-name/cloud-api-adaptor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ buildGoModule rec {
"cmd/process-user-data"
];

CGO_ENABLED = if withLibvirt then 1 else 0;
env.CGO_ENABLED = if withLibvirt then 1 else 0;

tags = builtinCloudProviders;

Expand Down
3 changes: 2 additions & 1 deletion packages/by-name/contrast/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ buildGoModule rec {
install -D ${kata.genpolicy.settings-dev}/genpolicy-settings.json cli/genpolicy/assets/genpolicy-settings-kata.json
'';

CGO_ENABLED = 0;
env.CGO_ENABLED = 0;

ldflags = [
"-s"
"-X github.com/edgelesssys/contrast/internal/constants.Version=v${version}"
Expand Down
2 changes: 1 addition & 1 deletion packages/by-name/microsoft/kata-runtime/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ buildGoModule rec {
git
];

CGO_ENABLED = 0;
env.CGO_ENABLED = 0;
ldflags = [ "-s" ];

checkFlags =
Expand Down
3 changes: 2 additions & 1 deletion packages/by-name/nydus-pull/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ buildGoModule rec {

subPackages = [ "." ];

CGO_ENABLED = 0;
env.CGO_ENABLED = 0;

ldflags = [
"-s"
"-X main.version=v${version}"
Expand Down
2 changes: 1 addition & 1 deletion packages/by-name/nydus-snapshotter/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buildGoModule rec {
"cmd/nydus-overlayfs"
];

CGO_ENABLED = "0";
env.CGO_ENABLED = "0";

ldflags = [
"-s"
Expand Down
4 changes: 2 additions & 2 deletions packages/by-name/service-mesh/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ buildGoModule rec {

subPackages = [ "." ];

CGO_ENABLED = 0;
env.CGO_ENABLED = 0;

ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
];

Expand Down
3 changes: 2 additions & 1 deletion packages/by-name/tdx-measure/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ buildGoModule rec {

subPackages = [ "." ];

CGO_ENABLED = 0;
env.CGO_ENABLED = 0;

ldflags = [
"-s"
"-X main.version=v${version}"
Expand Down

0 comments on commit 5105256

Please sign in to comment.