Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang update to version 1.22.0 #8556

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .expeditor/generate-automate-cli-docs.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -eou pipefail

# bumping expeditor to go 1.19
hab pkg install --binlink core/go19 --force
# bumping expeditor to go 1.22
hab pkg install --binlink core/go22 --force

pushd components/automate-cli
make docs
Expand Down
8 changes: 5 additions & 3 deletions .expeditor/license_scout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ log() {
echo "[$(date -u)] $*"
}

export GOPROXY=https://proxy.golang.org,direct

# license_scout uses licensee internally. licensee reads OCTOKIT_ACCESS_TOKEN
# from the environment to make authenticated requests to github. This increases
# the API rate limits that github enforces. Our license checks now read so many
Expand Down Expand Up @@ -40,10 +42,10 @@ log_section_start "Installing License Scout"
gem install license_scout -v 2.5.1
log "Finished Installing License Scout"

log_section_start "Installing Go 1.19.3"
hab pkg install --force --binlink core/go19/1.19.3 && rm -rf /hab/cache && mkdir -p "$GOPATH/src" "$GOPATH/bin"
log_section_start "Installing Go 1.22.5"
hab pkg install --force --binlink core/go22/1.22.5 && rm -rf /hab/cache && mkdir -p "$GOPATH/src" "$GOPATH/bin"
go version
log "Finished Installing Go 1.19.3"
log "Finished Installing Go 1.22.5"

log_section_start "Installing Chef UI Library dependencies"
pushd components/chef-ui-library
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19.3'
go-version: '1.22.5'
- name: Test and coverage
run: tools/go_coverage_report.sh
- name: SonarQube Scan
Expand Down
2 changes: 1 addition & 1 deletion .studio/common
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function link_component_bin() {
}

function desired_golang_ident() {
echo "core/go19/$(cat /src/GOLANG_VERSION)"
echo "core/go22/$(cat /src/GOLANG_VERSION)"
}

function verify_components_have_platform_config() {
Expand Down
2 changes: 1 addition & 1 deletion .studio/compliance-service
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function load_scan_jobs() {
# shellcheck disable=SC1091
source dev/secrets-env.sh
pushd dev-docs/adding-data &> /dev/null
install_if_missing core/go19 go
iinstall_if_missing core/go22 go
go run add_scanjobs.go
popd &> /dev/null
fi
Expand Down
4 changes: 2 additions & 2 deletions .studio/protobuf
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function install_protoc_toolchain() {
github.com/envoyproxy/protoc-gen-validate
github.com/ckaznocha/protoc-gen-lint
github.com/bufbuild/buf/cmd/buf
github.com/bufbuild/buf/cmd/protoc-gen-buf-check-breaking
github.com/bufbuild/buf/cmd/protoc-gen-buf-check-lint
# github.com/bufbuild/buf/cmd/protoc-gen-buf-check-breaking
# github.com/bufbuild/buf/cmd/protoc-gen-buf-check-lint
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
)
Expand Down
4 changes: 3 additions & 1 deletion .studiorc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export HAB_ORIGIN=${HAB_ORIGIN:-chef}
# Bring studio-common to life
RECOMMENDED_HAB_VERSION="1.6.521"

GOLANGCILINTVERSION=1.50.1
GOLANGCILINTVERSION=1.60.3

# TODO(ssd) 2019-11-19: https://github.com/habitat-sh/habitat/issues/7219
unset SSL_CERT_FILE
Expand All @@ -30,6 +30,8 @@ export GATEWAY_PORT=2000
# Compiling with cgo require gcc to be in our path. We don't typically
# use cgo so we set CGO_ENABLED=0 by default in the studio.
export CGO_ENABLED=0
export GOPROXY=https://proxy.golang.org,direct
export GOSUMDB="sum.golang.org"

# Go >= 1.13 will assume this but we have tools like protoc extensions that
# look for it.
Expand Down
2 changes: 1 addition & 1 deletion GOLANG_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.3
1.22.5
2 changes: 1 addition & 1 deletion Makefile.common_go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif
ifeq ($(UNAME_S),Darwin)
PLATFORM:=darwin-amd64
endif
GOLANGCILINTVERSION?=1.50.1
GOLANGCILINTVERSION?=1.60.3
GOLANGCILINTTARBALL:=golangci-lint-$(GOLANGCILINTVERSION)-$(PLATFORM).tar.gz

LINTERARGS?=./...
Expand Down
4 changes: 2 additions & 2 deletions api/config/elasticsearch/config_request.pb.a2svc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/config/opensearch/config_request.pb.a2svc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions api/external/applications/applications.pb.gw.go

Large diffs are not rendered by default.

39 changes: 18 additions & 21 deletions api/external/applications/applications.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading