-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2429 from ActiveState/green/go_1x20.DX-668
Update to Go 1.20
- Loading branch information
Showing
40 changed files
with
105 additions
and
9,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ constants: | |
- name: SET_ENV | ||
description: The environment settings used throughout our project | ||
value: | | ||
GOFLAGS='-mod=vendor' | ||
GOPATH="${GOPATH:=`go env GOPATH`}" | ||
GOROOT="${GOROOT:=`go env GOROOT`}" | ||
export CGO_ENABLED=0 | ||
|
@@ -49,14 +48,33 @@ constants: | |
scripts: | ||
- name: install-deps | ||
language: bash | ||
if: ne .Shell "cmd" | ||
value: | | ||
export GO111MODULE=on | ||
goflags="${GOFLAGS}"; unset GOFLAGS | ||
GOFLAGS="${goflags}" | ||
pushd ~ | ||
go install github.com/ActiveState/gozip/cmd/gozip@e455986 | ||
popd | ||
$scripts.install-deps-os | ||
if ! type "gozip" &> /dev/null; then | ||
echo "gozip was not found on your PATH, installing .." | ||
go install github.com/ActiveState/gozip/cmd/gozip@e455986 | ||
fi | ||
- name: install-deps-dev | ||
language: bash | ||
if: ne .Shell "cmd" | ||
value: | | ||
if ! type "go" &> /dev/null; then | ||
echo "go is not installed. Please install Go version 1.20 or above." | ||
exit 1 | ||
fi | ||
if ! type "golangci-lint" &> /dev/null; then | ||
echo "golangci-lint was not found on your PATH, installing .." | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
fi | ||
git config core.hooksPath .githooks | ||
if ! type "swagger" &> /dev/null; then | ||
echo "swagger was not found on your PATH, installing .." | ||
go install github.com/go-swagger/go-swagger/cmd/[email protected] | ||
fi | ||
if ! type "actionlint" &> /dev/null; then | ||
echo "actionlint was not found on your PATH, installing .." | ||
go install github.com/rhysd/actionlint/cmd/[email protected] | ||
fi | ||
- name: install-deps-os | ||
language: bash | ||
if: ne .OS.Name "Linux" | ||
|
@@ -68,7 +86,7 @@ scripts: | |
value: | | ||
set -e | ||
$constants.SET_ENV | ||
go run scripts/constants-generator/main.go -- internal/constants/generated.go | ||
go run scripts/constants-generator/main.go ${@} -- internal/constants/generated.go | ||
- name: build | ||
language: bash | ||
description: Builds the project with the host OS as the target OS. | ||
|
@@ -391,23 +409,8 @@ events: | |
- name: activate | ||
if: ne .Shell "cmd" | ||
value: | | ||
if ! type "go" &> /dev/null; then | ||
echo "go is not installed. Please install Go version 1.11 or above." | ||
exit 1 | ||
fi | ||
if ! type "golangci-lint" &> /dev/null; then | ||
echo "golangci-lint was not found on your PATH, installing .." | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
fi | ||
git config core.hooksPath .githooks | ||
if ! type "swagger" &> /dev/null; then | ||
echo "swagger was not found on your PATH, installing .." | ||
go install github.com/go-swagger/go-swagger/cmd/[email protected] | ||
fi | ||
if ! type "actionlint" &> /dev/null; then | ||
echo "actionlint was not found on your PATH, installing .." | ||
go install github.com/rhysd/actionlint/cmd/[email protected] | ||
fi | ||
$scripts.install-deps-dev | ||
$scripts.install-deps | ||
- name: file-changed | ||
scope: ["internal/locale/locales"] | ||
value: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.