mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Update odo to use go 1.18 (#6166)
* Update odo to use go 1.18 Signed-off-by: Dharmit Shah <shahdharmit@gmail.com> * Update golangci-lint version in Makefile Signed-off-by: Dharmit Shah <shahdharmit@gmail.com> * Use go 1.18, not go 1.19 Erroneously I had used go 1.19 at various places. Signed-off-by: Dharmit Shah <shahdharmit@gmail.com> * Rearrange imports; fix golangci-lint errors Fixed a bunch of golangci-lint errors like below: `File is not `gofmt`-ed with `-s`` using the command: `golangci-lint run --fix` Signed-off-by: Dharmit Shah <shahdharmit@gmail.com> * Use go install instead of go get This is because with go 1.18, `go get` behaves as `go get -d` by default. Which means that it will only download, but not install. Signed-off-by: Dharmit Shah <shahdharmit@gmail.com> Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.17
|
||||
FROM golang:1.18
|
||||
|
||||
RUN curl -fsSL https://clis.cloud.ibm.com/install/linux | sh && \
|
||||
curl -sLO https://github.com/cli/cli/releases/download/v2.1.0/gh_2.1.0_linux_amd64.deb && \
|
||||
@@ -18,6 +18,6 @@ RUN useradd -u 2001 --create-home tester
|
||||
# Change to non-root privilege
|
||||
USER tester
|
||||
|
||||
RUN go get github.com/kadel/odo-robot@965ea0dd848856691bfc76e6824a8b787b950045 && \
|
||||
RUN go install github.com/kadel/odo-robot@965ea0dd848856691bfc76e6824a8b787b950045 && \
|
||||
ibmcloud plugin install -f cloud-object-storage && \
|
||||
ibmcloud plugin install -f kubernetes-service
|
||||
|
||||
Reference in New Issue
Block a user