Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Golang 1.18 (#3508)
Browse files Browse the repository at this point in the history
* Update Golang to 1.18

* Update GitHub workflows to use Go 1.18

* Update zz_generated.bindata.go

* Update Docker files to use Go 1.18

* More GitHub workflow updates

* Update Makefile environment file

* Update test task for capabilities
  • Loading branch information
seemiller authored Oct 5, 2022
1 parent 4f21910 commit b6bc162
Show file tree
Hide file tree
Showing 69 changed files with 447 additions and 451 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Use Node 16.x
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: go cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugin_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: go cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Use Node 16.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Use Node 16.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security_codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Use Node 16.x
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tkg_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tkg_integration_tests_clusterclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: 1.18
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion addons/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Build from publicly reachable source by default, but allow people to re-build images on
# top of their own trusted images.
ARG BUILDER_BASE_IMAGE=golang:1.17
ARG BUILDER_BASE_IMAGE=golang:1.18

# Build the manager binary
FROM $BUILDER_BASE_IMAGE as builder
Expand Down
2 changes: 1 addition & 1 deletion addons/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/addons

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/addonconfigs => ./../apis/addonconfigs
Expand Down
2 changes: 1 addition & 1 deletion addons/hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/addons/hack/tools

go 1.17
go 1.18

require github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0

Expand Down
2 changes: 1 addition & 1 deletion apis/addonconfigs/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/apis/addonconfigs

go 1.17
go 1.18

require (
k8s.io/api v0.23.5
Expand Down
2 changes: 1 addition & 1 deletion apis/cli/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/apis/cli

go 1.17
go 1.18

replace github.com/vmware-tanzu/tanzu-framework/apis/config => ../../apis/config

Expand Down
2 changes: 1 addition & 1 deletion apis/config/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/apis/config

go 1.17
go 1.18

require (
github.com/google/go-cmp v0.5.8
Expand Down
2 changes: 1 addition & 1 deletion apis/core/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/apis/core

go 1.17
go 1.18

require (
k8s.io/api v0.23.5
Expand Down
2 changes: 1 addition & 1 deletion apis/run/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/apis/run

go 1.17
go 1.18

require (
github.com/google/go-cmp v0.5.6
Expand Down
2 changes: 1 addition & 1 deletion capabilities/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CRD_OPTIONS ?= "crd"
all: manager

# Run tests
test: fmt vet manifests
test: fmt vet
cd client && go test ./... -coverprofile cover.out
cd controller && go test ./... -coverprofile cover.out

Expand Down
2 changes: 1 addition & 1 deletion capabilities/client/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/capabilities/client

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/run => ../../apis/run
Expand Down
2 changes: 1 addition & 1 deletion capabilities/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Build from publicly reachable source by default, but allow people to re-build images on
# top of their own trusted images.
ARG BUILDER_BASE_IMAGE=golang:1.17
ARG BUILDER_BASE_IMAGE=golang:1.18

# Build the manager binary
FROM $BUILDER_BASE_IMAGE as builder
Expand Down
2 changes: 1 addition & 1 deletion capabilities/controller/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/capabilities/controller

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/core => ../../apis/core
Expand Down
2 changes: 1 addition & 1 deletion cli/core/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/cli/core

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ./../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cli/core/hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/cli/core/hack/tools

go 1.17
go 1.18

require golang.org/x/tools v0.1.12

Expand Down
2 changes: 1 addition & 1 deletion cli/runtime/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/cli/runtime

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cli/runtime/hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/cli/runtime/hack/tools

go 1.17
go 1.18

require (
golang.org/x/tools v0.1.12
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin-admin/builder/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/builder

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
go-version: ^1.18
id: go

- name: Check out code into the Go module directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildpush:
only:
- master
stage: deploy
image: golang:1.17.6
image: golang:1.18
script:
# Note: this is all one step because the artifacts were too large to copy over.
- make
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module {{ .RepositoryName }}

go 1.17
go 1.18

require (
github.com/aunum/log v0.0.0-20200821225356-38d2e2c8b489
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin-admin/codegen/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/codegen/plugin

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin-admin/test/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/test

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin/feature/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/featuregate/plugin

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ./../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin/login/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/login

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin/package/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/cmd/cli/plugin/package

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin/pinniped-auth/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/pinniped-auth

go 1.17
go 1.18

replace github.com/vmware-tanzu/tanzu-framework/cli/runtime => ../../../../cli/runtime

Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/plugin/secret/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/cmd/cli/plugin/secret

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
GOHOSTOS ?= $(shell go env GOHOSTOS)
GOHOSTARCH ?= $(shell go env GOHOSTARCH)
GOVERSION ?= 1.17
GOVERSION ?= 1.18

ROOT_DIR := $(shell git rev-parse --show-toplevel)
RELATIVE_ROOT ?= .
Expand Down
2 changes: 1 addition & 1 deletion featuregates/client/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/featuregates/client

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework => ../../
Expand Down
2 changes: 1 addition & 1 deletion featuregates/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Build from publicly reachable source by default, but allow people to re-build images on
# top of their own trusted images.
ARG BUILDER_BASE_IMAGE=golang:1.17
ARG BUILDER_BASE_IMAGE=golang:1.18

# Build the manager binary
FROM $BUILDER_BASE_IMAGE as builder
Expand Down
2 changes: 1 addition & 1 deletion featuregates/controller/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/featuregates/controller

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ../../apis/cli
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework/apis/cli => ./apis/cli
Expand Down
2 changes: 1 addition & 1 deletion hack/packages/kbld-image-replace/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/hack/packages

go 1.17
go 1.18

require (
github.com/k14s/kbld v0.32.0
Expand Down
2 changes: 1 addition & 1 deletion hack/packages/package-tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/hack/packages/package-tools

go 1.17
go 1.18

require (
github.com/spf13/cobra v1.3.0
Expand Down
Loading

0 comments on commit b6bc162

Please sign in to comment.