Skip to content

Commit

Permalink
Update go version to 1.21 (#2392)
Browse files Browse the repository at this point in the history
* Updated go version

Signed-off-by: mabhi <[email protected]>

* Update kanister image version

Signed-off-by: mabhi <[email protected]>

* Update golangci linter version

Signed-off-by: mabhi <[email protected]>

* Removed deprecated go flag (-i)

Signed-off-by: mabhi <[email protected]>

---------

Signed-off-by: mabhi <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mabhi and mergify[bot] authored Oct 17, 2023
1 parent 058236d commit bf89e76
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/run_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set -o nounset
PWD="${PWD:-$(pwd)}"

DOCS_BUILD_IMAGE="${DOCS_BUILD_IMAGE:-ghcr.io/kanisterio/docker-sphinx:0.2.0}"
BUILD_IMAGE="${BUILD_IMAGE:-ghcr.io/kanisterio/build:v0.0.24}"
BUILD_IMAGE="${BUILD_IMAGE:-ghcr.io/kanisterio/build:v0.0.25}"
PKG="${PKG:-github.com/kanisterio/kanister}"

ARCH="${ARCH:-amd64}"
Expand Down
2 changes: 1 addition & 1 deletion build/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ check_dependencies() {
check_dependencies

echo "Running tests:"
go test -v -installsuffix "static" -i ${TARGETS}
go test -v -installsuffix "static" ${TARGETS}
go test -v ${TARGETS} -list .
go test -v -installsuffix "static" ${TARGETS} -check.v
echo
Expand Down
5 changes: 2 additions & 3 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM golang:1.19-bullseye

FROM golang:1.21-bullseye
LABEL maintainer="Tom Manville<[email protected]>"

RUN apt-get update && apt-get -y install apt-transport-https ca-certificates bash git gnupg2 software-properties-common curl jq wget \
Expand All @@ -17,7 +16,7 @@ COPY --from=goreleaser/goreleaser:v1.12.3 /usr/bin/goreleaser /usr/local/bin/

COPY --from=alpine/helm:3.12.2 /usr/bin/helm /usr/local/bin/

COPY --from=golangci/golangci-lint:v1.50 /usr/bin/golangci-lint /usr/local/bin/
COPY --from=golangci/golangci-lint:v1.51.2 /usr/bin/golangci-lint /usr/local/bin/

RUN wget -O /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.18.0/kind-linux-amd64 \
&& chmod +x /usr/local/bin/kind
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/kanisterio/kanister

go 1.19
go 1.21.3

replace (
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.4.1
Expand Down
Loading

0 comments on commit bf89e76

Please sign in to comment.