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:
2
Makefile
2
Makefile
@@ -54,7 +54,7 @@ GINKGO_FLAGS_AUTO = $(GINKGO_FLAGS_ALL) -p
|
||||
# Flags for tests that may be run in parallel
|
||||
GINKGO_FLAGS=$(GINKGO_FLAGS_ALL) -nodes=$(TEST_EXEC_NODES)
|
||||
# GolangCi version for unit-validate test
|
||||
GOLANGCI_LINT_VERSION=1.37.0
|
||||
GOLANGCI_LINT_VERSION=1.49.0
|
||||
|
||||
RUN_GINKGO = go run -mod=vendor github.com/onsi/ginkgo/v2/ginkgo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user