chore: upgrade ExternalDNS to go 1.23

This commit is contained in:
Michel Loiseleur 2024-08-22 09:10:10 +02:00
parent 9fb831e97f
commit 50672d66b9
Failed to extract signature
9 changed files with 9 additions and 13 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.22.4' go-version-file: go.mod
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View File

@ -30,7 +30,7 @@ jobs:
- name: Install go version - name: Install go version
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '^1.22.4' go-version-file: go.mod
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL

View File

@ -25,10 +25,6 @@ jobs:
cache: "pip" cache: "pip"
cache-dependency-path: "./docs/scripts/requirements.txt" cache-dependency-path: "./docs/scripts/requirements.txt"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- run: | - run: |
pip install -r docs/scripts/requirements.txt pip install -r docs/scripts/requirements.txt

View File

@ -23,7 +23,7 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.22.4' go-version-file: go.mod
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@ -31,5 +31,5 @@ jobs:
- name: Lint - name: Lint
run: | run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
make lint make lint

View File

@ -23,7 +23,7 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.22.4' go-version-file: go.mod
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View File

@ -41,7 +41,7 @@ CONTROLLER_GEN=$(shell which controller-gen)
endif endif
golangci-lint: golangci-lint:
@command -v golangci-lint > /dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2 @command -v golangci-lint > /dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
# Run the golangci-lint tool # Run the golangci-lint tool
.PHONY: go-lint .PHONY: go-lint

View File

@ -4,7 +4,7 @@ options:
substitution_option: ALLOW_LOOSE substitution_option: ALLOW_LOOSE
machineType: 'N1_HIGHCPU_8' machineType: 'N1_HIGHCPU_8'
steps: steps:
- name: 'docker.io/library/golang:1.22.4-bookworm' - name: 'docker.io/library/golang:1.23-bookworm'
entrypoint: make entrypoint: make
env: env:
- VERSION=$_GIT_TAG - VERSION=$_GIT_TAG

View File

@ -1,7 +1,7 @@
# Quick Start # Quick Start
- [Git](https://git-scm.com/downloads) - [Git](https://git-scm.com/downloads)
- [Go 1.22+](https://golang.org/dl/) - [Go 1.23+](https://golang.org/dl/)
- [Go modules](https://github.com/golang/go/wiki/Modules) - [Go modules](https://github.com/golang/go/wiki/Modules)
- [golangci-lint](https://github.com/golangci/golangci-lint) - [golangci-lint](https://github.com/golangci/golangci-lint)
- [ko](https://ko.build/) - [ko](https://ko.build/)

2
go.mod
View File

@ -1,6 +1,6 @@
module sigs.k8s.io/external-dns module sigs.k8s.io/external-dns
go 1.22.4 go 1.23
require ( require (
cloud.google.com/go/compute/metadata v0.5.0 cloud.google.com/go/compute/metadata v0.5.0