Skip to content

Commit 7efd398

Browse files
jhrotkoglours
authored andcommitted
Bump go minimal version to 1.21
Signed-off-by: jhrotko <[email protected]>
1 parent ea7ab6f commit 7efd398

File tree

6 files changed

+5
-58
lines changed

6 files changed

+5
-58
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.21', '1.20']
21+
go-version: ['1.22', '1.21']
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.20
15+
FROM golang:1.21
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.20
3+
go 1.21
44

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

override/compare.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

override/compare120.go

Lines changed: 0 additions & 29 deletions
This file was deleted.

override/merge.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package override
1818

1919
import (
20+
"cmp"
2021
"fmt"
2122
"strings"
2223

@@ -179,7 +180,7 @@ func convertIntoSequence(value any) []any {
179180
i++
180181
}
181182
slices.SortFunc(seq, func(a, b any) int {
182-
return compare(a.(string), b.(string))
183+
return cmp.Compare(a.(string), b.(string))
183184
})
184185
return seq
185186
case []any:

0 commit comments

Comments
 (0)