Skip to content

Commit 96874e9

Browse files
chore: upgrade go version to 1.18 (#108)
Signed-off-by: Ashok Pon Kumar Sree Prakash <[email protected]>
1 parent 0b946c4 commit 96874e9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN mkdir -p $GOPATH/src $GOPATH/bin && chmod -R 777 $GOPATH
2626
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
2727

2828
# Download Go.
29-
ARG GO_VERSION=1.17
29+
ARG GO_VERSION=1.18
3030
RUN curl -o go.tgz "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" \
3131
&& tar -xzf go.tgz \
3232
&& mv go /usr/local/ \

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TARGETS := darwin/amd64 linux/amd64
1919
REGISTRYNS := quay.io/konveyor
2020
SWAGGER_UI_VERSION := 3.52.3
2121

22-
GO_VERSION ?= $(shell go run ./scripts/detectgoversion/detect.go 2>/dev/null || printf '1.17')
22+
GO_VERSION ?= $(shell go run ./scripts/detectgoversion/detect.go 2>/dev/null || printf '1.18')
2323
GOPATH = $(shell go env GOPATH)
2424
GOX = $(GOPATH)/bin/gox
2525
GOTEST = ${GOPATH}/bin/gotest
@@ -142,7 +142,7 @@ test-coverage: ${GOLANGCOVER} ## Run tests with coverage
142142
go test -run . $(PKG) -coverprofile=coverage.txt -covermode=atomic
143143

144144
${GOLANGCILINT}:
145-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.31.0
145+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.45.2
146146

147147
.PHONY: test-style
148148
test-style: ${GOLANGCILINT}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run using container from registry using `make crun`
1515

1616
## Setup
1717

18-
1. Obtain a recent version of `golang`. Known to work with `1.17`.
18+
1. Obtain a recent version of `golang`. Known to work with `1.18`.
1919
1. Ensure `$GOPATH` is set. If it's not set:
2020
1. `mkdir ~/go`
2121
1. `export GOPATH=~/go`

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/konveyor/move2kube-api
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/Nerzal/gocloak/v10 v10.0.1

0 commit comments

Comments
 (0)