Skip to content

Commit

Permalink
use go 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed Feb 20, 2025
1 parent 1edb953 commit 58dcf87
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.21
FROM golang:1.23

WORKDIR /go/src

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/compose-spec/compose-go/v2

go 1.21
go 1.23

require (
github.com/distribution/reference v0.5.0
Expand Down
1 change: 0 additions & 1 deletion loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,6 @@ services:
},
}
for _, testcase := range testcases {
testcase := testcase
t.Run(testcase.doc, func(t *testing.T) {
config, err := loadYAML(testcase.yaml)
assert.NilError(t, err)
Expand Down
1 change: 0 additions & 1 deletion template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ func TestInterpolationExternalInterference(t *testing.T) {
},
}
for i, tc := range testCases {
tc := tc
t.Run(fmt.Sprintf("Interpolation Should not be impacted by outer text: %d", i), func(t *testing.T) {
result, err := Substitute(tc.template, defaultMapping)
assert.NilError(t, err)
Expand Down
1 change: 0 additions & 1 deletion template/variables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ func TestExtractVariables(t *testing.T) {
},
}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
actual := ExtractVariables(tc.dict, DefaultPattern)
assert.Check(t, is.DeepEqual(actual, tc.expected))
Expand Down
1 change: 0 additions & 1 deletion types/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func (l Labels) AsList() []string {
func (l Labels) ToMappingWithEquals() MappingWithEquals {
mapping := MappingWithEquals{}
for k, v := range l {
v := v
mapping[k] = &v
}
return mapping
Expand Down
1 change: 0 additions & 1 deletion types/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ func (m Mapping) Values() []string {
func (m Mapping) ToMappingWithEquals() MappingWithEquals {
mapping := MappingWithEquals{}
for k, v := range m {
v := v
mapping[k] = &v
}
return mapping
Expand Down
1 change: 0 additions & 1 deletion types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ func TestMarshalServiceEntrypoint(t *testing.T) {
}

for _, tc := range tcs {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 58dcf87

Please sign in to comment.