Skip to content

Commit

Permalink
Downgrade to go 1.22 due to golang/go#68976
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Nov 4, 2024
1 parent acea86a commit 0f7af13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 6 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM golang:latest AS go
# locked to golang:1.22.8 for now
# as there's a bug with qemu and go 1.23
# its meant to be fixed in 1.23.3
# but I guess we'll wait and see
# https://github.com/golang/go/issues/69259
FROM golang:1.22.8 AS go
LABEL maintainer="Jamie Curnow <[email protected]>"

RUN apt-get update \
Expand Down
15 changes: 8 additions & 7 deletions scripts/install-tools
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,26 @@ case $TARGETPLATFORM in
esac

echo -e "${BLUE}${CYAN}Installing golangci-lint ...${RESET}"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest || true
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

echo -e "${BLUE}${CYAN}Installing richgo ...${RESET}"
go install github.com/kyoh86/richgo@latest || true
go install github.com/kyoh86/richgo@latest

echo -e "${BLUE}${CYAN}Installing govulncheck ...${RESET}"
go install golang.org/x/vuln/cmd/govulncheck@latest || true
go install golang.org/x/vuln/cmd/govulncheck@latest

echo -e "${BLUE}${CYAN}Installing tparse ...${RESET}"
go install github.com/mfridman/tparse@latest || true
go install github.com/mfridman/tparse@latest

echo -e "${BLUE}${CYAN}Installing go-junit-report ...${RESET}"
go install github.com/jstemmer/go-junit-report@latest || true
go install github.com/jstemmer/go-junit-report@latest

echo -e "${BLUE}${CYAN}Installing go-test-coverage ...${RESET}"
go install github.com/vladopajic/go-test-coverage/v2@latest || true
# use `latest` again when we can use go 1.23
go install github.com/vladopajic/go-test-coverage/[email protected]

echo -e "${BLUE}${CYAN}Installing go-mod-upgrade ...${RESET}"
go install github.com/oligot/go-mod-upgrade@latest || true
go install github.com/oligot/go-mod-upgrade@latest

rm -rf "$(go env GOPATH)/.cache/go-build"
echo -e "${BLUE}${GREEN}Tools install completed${RESET}"
Expand Down

0 comments on commit 0f7af13

Please sign in to comment.