Skip to content

Commit 234f8ae

Browse files
committed
use go 1.23
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent ac47661 commit 234f8ae

File tree

9 files changed

+3
-9
lines changed

9 files changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
test:
1919
strategy:
2020
matrix:
21-
go-version: ['1.22', '1.21']
21+
go-version: ['1.23', '1.24']
2222
platform: [ubuntu-latest, macos-latest, windows-latest]
2323
runs-on: ${{ matrix.platform }}
2424
timeout-minutes: 10

ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.21
15+
FROM golang:1.23
1616

1717
WORKDIR /go/src
1818

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/compose-spec/compose-go/v2
22

3-
go 1.21
3+
go 1.23
44

55
require (
66
github.com/distribution/reference v0.5.0

loader/loader_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,6 @@ services:
18741874
},
18751875
}
18761876
for _, testcase := range testcases {
1877-
testcase := testcase
18781877
t.Run(testcase.doc, func(t *testing.T) {
18791878
config, err := loadYAML(testcase.yaml)
18801879
assert.NilError(t, err)

template/template_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ func TestInterpolationExternalInterference(t *testing.T) {
218218
},
219219
}
220220
for i, tc := range testCases {
221-
tc := tc
222221
t.Run(fmt.Sprintf("Interpolation Should not be impacted by outer text: %d", i), func(t *testing.T) {
223222
result, err := Substitute(tc.template, defaultMapping)
224223
assert.NilError(t, err)

template/variables_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ func TestExtractVariables(t *testing.T) {
193193
},
194194
}
195195
for _, tc := range testCases {
196-
tc := tc
197196
t.Run(tc.name, func(t *testing.T) {
198197
actual := ExtractVariables(tc.dict, DefaultPattern)
199198
assert.Check(t, is.DeepEqual(actual, tc.expected))

types/labels.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func (l Labels) AsList() []string {
5555
func (l Labels) ToMappingWithEquals() MappingWithEquals {
5656
mapping := MappingWithEquals{}
5757
for k, v := range l {
58-
v := v
5958
mapping[k] = &v
6059
}
6160
return mapping

types/mapping.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ func (m Mapping) Values() []string {
157157
func (m Mapping) ToMappingWithEquals() MappingWithEquals {
158158
mapping := MappingWithEquals{}
159159
for k, v := range m {
160-
v := v
161160
mapping[k] = &v
162161
}
163162
return mapping

types/types_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ func TestMarshalServiceEntrypoint(t *testing.T) {
318318
}
319319

320320
for _, tc := range tcs {
321-
tc := tc
322321
t.Run(tc.name, func(t *testing.T) {
323322
t.Parallel()
324323

0 commit comments

Comments
 (0)