From ea8ad591e640da844d8c80d308ebe841e2851c51 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Sat, 10 Feb 2024 11:56:57 +0100 Subject: [PATCH] loopvar is now standard behaviour of go 1.22 --- .devcontainer/devcontainer.json | 4 +--- .github/workflows/test-build.yml | 6 ------ build/package/Dockerfile | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b12bd9d..fc1e0b0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -34,7 +34,5 @@ "ghcr.io/devcontainers/features/github-cli:1": {} }, // Set up environment variables in the remote container. - "remoteEnv": { - "GOEXPERIMENT": "loopvar" - } + "remoteEnv": {} } diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7b69be5..b3bb2df 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -5,9 +5,6 @@ jobs: name: Test runs-on: ubuntu-latest - env: - GOEXPERIMENT: loopvar - steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -43,9 +40,6 @@ jobs: - dockerfile: Dockerfile image_name: source-template - env: - GOEXPERIMENT: loopvar - steps: - name: Checkout uses: actions/checkout@v4 diff --git a/build/package/Dockerfile b/build/package/Dockerfile index 9956ca3..1c3bdc0 100644 --- a/build/package/Dockerfile +++ b/build/package/Dockerfile @@ -3,8 +3,6 @@ FROM golang:1.22 as builder ARG TARGETOS ARG TARGETARCH -ENV GOEXPERIMENT=loopvar - WORKDIR /workspace # Copy the Go Modules manifests