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 (#3577)
Browse files Browse the repository at this point in the history
Bump Golang version.
  • Loading branch information
seemiller authored Oct 12, 2022
1 parent d783bf9 commit 83f9375
Show file tree
Hide file tree
Showing 73 changed files with 281 additions and 281 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 @@ -110,7 +110,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 @@ -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: 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 @@ -26,7 +26,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/cluster/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/cluster

go 1.17
go 1.18

replace (
github.com/vmware-tanzu/tanzu-framework => ../../../../
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/managementcluster/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-framework/plugin/managementcluster

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
Loading

0 comments on commit 83f9375

Please sign in to comment.