Skip to content

Commit

Permalink
feat: bump go to v1.23 (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 authored Jan 14, 2025
1 parent 416edd7 commit 35e2902
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
- name: Import GPG key
id: import_gpg
run: |
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ issues:
- go/pkg/mod
linters:
enable:
- vet
- govet
- staticcheck
- errcheck
- gofmt
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.suse.com/bci/golang:1.22
FROM registry.suse.com/bci/golang:1.23

ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
Expand All @@ -10,7 +10,7 @@ RUN zypper -n rm container-suseconnect && \
RUN GO111MODULE=on go install golang.org/x/tools/cmd/[email protected]

## install golangci-lint
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.1
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.63.4

# The docker version in dapper is too old to have buildx. Install it manually.
RUN wget --quiet https://github.com/docker/buildx/releases/download/v0.13.1/buildx-v0.13.1.linux-${ARCH} && \
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/harvester/terraform-provider-harvester

go 1.22.5
go 1.23.4

replace (
// From this commit, it starts to support Darwin.
Expand Down Expand Up @@ -29,6 +29,7 @@ replace (
)

require (
github.com/google/uuid v1.6.0
github.com/harvester/harvester v1.3.2
github.com/harvester/harvester-network-controller v0.5.4
github.com/hashicorp/terraform-plugin-docs v0.4.0
Expand Down Expand Up @@ -101,7 +102,6 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/gorilla/handlers v1.5.2 // indirect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *Constructor) Setup() util.Processors {
}
}

vmBuilder.Disk(diskName, diskBus, isCDRom, uint(bootOrder))
vmBuilder.Disk(diskName, diskBus, isCDRom, uint(bootOrder)) // nolint: gosec
if existingVolumeName != "" {
vmBuilder.ExistingPVCVolume(diskName, existingVolumeName, hotPlug)
} else if containerImageName != "" {
Expand Down

0 comments on commit 35e2902

Please sign in to comment.