From ea9dd0b5dd5d2e3ebf286c61bc48a0a03f21e531 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 5 Nov 2024 15:40:23 +0100 Subject: [PATCH] fix: ld_classic is deprecated --- .github/workflows/test-e2e-cli.yml | 2 +- .github/workflows/test-unit.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-e2e-cli.yml b/.github/workflows/test-e2e-cli.yml index 0ed62bf002..90111a2e36 100644 --- a/.github/workflows/test-e2e-cli.yml +++ b/.github/workflows/test-e2e-cli.yml @@ -69,7 +69,7 @@ jobs: # Prevent linker warnings on macOs (https://github.com/golang/go/issues/61229#issuecomment-1988965927) if [ "$RUNNER_OS" == "macOS" ]; then - export GOFLAGS="-ldflags=-extldflags=-Wl,-ld_classic" + export GOFLAGS="-ldflags=-linkmode=internal" fi # Build binary for test without external inputs diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index dc312f06a0..5587c17b7b 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -92,7 +92,7 @@ jobs: run: | # Prevent linker warnings on macOs (https://github.com/golang/go/issues/61229#issuecomment-1988965927) if [ "$RUNNER_OS" == "macOS" ]; then - export GOFLAGS="-ldflags=-extldflags=-Wl,-ld_classic" + export GOFLAGS="-ldflags=-linkmode=internal" fi # Prevent testing unnecessary code for particular release