Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
loopvar is now standard behaviour of go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Feb 10, 2024
1 parent 188f4f4 commit ea8ad59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@
"ghcr.io/devcontainers/features/github-cli:1": {}
},
// Set up environment variables in the remote container.
"remoteEnv": {
"GOEXPERIMENT": "loopvar"
}
"remoteEnv": {}
}
6 changes: 0 additions & 6 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ jobs:
name: Test
runs-on: ubuntu-latest

env:
GOEXPERIMENT: loopvar

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -43,9 +40,6 @@ jobs:
- dockerfile: Dockerfile
image_name: source-template

env:
GOEXPERIMENT: loopvar

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ FROM golang:1.22 as builder
ARG TARGETOS
ARG TARGETARCH

ENV GOEXPERIMENT=loopvar

WORKDIR /workspace

# Copy the Go Modules manifests
Expand Down

0 comments on commit ea8ad59

Please sign in to comment.