Skip to content
Merged
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 .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.23
- name: Set up Go 1.26
uses: actions/setup-go@v3
with:
go-version: 1.23
go-version: "1.26"
id: go

- name: Config credentials
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-coexistence_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 1.23
go-version: "1.26"
id: go

- name: Setup dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli_core_e2e_sample-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.23
go-version: "1.26"
id: go

- name: go cache
Expand Down
22 changes: 1 addition & 21 deletions .github/workflows/cli_core_e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.23
go-version: "1.26"
id: go

- name: go cache
Expand All @@ -38,29 +38,10 @@ jobs:
restore-keys: |
${{ runner.os }}-go-

- name: Setup gcloud account
env:
GCP_SA: ${{ secrets.GCP_SA }}
GCP_PROJECT_NAME: ${{ secrets.GCP_PROJECT_NAME }}
run: |
if [ -n "$GCP_SA" ]; then
# Download and install Google Cloud SDK
wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
tar zxvf google-cloud-sdk.tar.gz && ./google-cloud-sdk/install.sh --usage-reporting=false --path-update=true
PATH="google-cloud-sdk/bin:${PATH}"
gcloud --quiet components update

echo $GCP_SA > ${HOME}/gcloud-service-key.json
gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
cat ${HOME}/gcloud-service-key.json | docker login -u _json_key --password-stdin https://gcr.io
gcloud config set project $GCP_PROJECT_NAME
fi

- name: Setup dependencies
run: |
make tools
echo "${PWD}/hack/tools/bin" >> $GITHUB_PATH
echo "${PWD}/google-cloud-sdk/bin" >> $GITHUB_PATH
echo "${PWD}/bin" >> $GITHUB_PATH

- name: Build CLI Core
Expand All @@ -75,7 +56,6 @@ jobs:
env:
TANZU_API_TOKEN: ${{ secrets.TANZU_API_TOKEN }}
TANZU_CLI_TMC_UNSTABLE_URL: ${{ secrets.TANZU_CLI_TMC_UNSTABLE_URL }}
CRD_PACKAGE_IMAGE : ${{ secrets.CRD_PACKAGE_IMAGE_FOR_TEST }}
run: |
make e2e-cli-core

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli_core_unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.23
go-version: "1.26"
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.23
go-version: "1.26"
id: go

- name: Check out code into the Go module directory
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ e2e-cli-core: tools crd-package-for-test start-test-central-repo start-airgapped
.PHONY: setup-custom-cert-for-test-central-repo
setup-custom-cert-for-test-central-repo: ## Setup up the custom ca cert for test-central-repo in the config file
@if [ ! -d $(ROOT_DIR)/hack/central-repo/certs ]; then \
wget https://storage.googleapis.com/tanzu-cli/data/testcerts/local-central-repo-testcontent.bz2 -O $(ROOT_DIR)/hack/central-repo/local-central-repo-testcontent.bz2;\
tar xjf $(ROOT_DIR)/hack/central-repo/local-central-repo-testcontent.bz2 -C $(ROOT_DIR)/hack/central-repo/;\
mkdir -p $(ROOT_DIR)/hack/central-repo/certs; \
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout $(ROOT_DIR)/hack/central-repo/certs/localhost.key \
-out $(ROOT_DIR)/hack/central-repo/certs/localhost.crt \
-subj "/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"; \
fi
echo "Adding docker test central repo cert to the config file"
TANZU_CLI_CEIP_OPT_IN_PROMPT_ANSWER="No" TANZU_CLI_EULA_PROMPT_ANSWER="Yes" $(ROOT_DIR)/bin/tanzu config cert delete localhost:9876 || true
Expand Down
2 changes: 1 addition & 1 deletion apis/cli/v1alpha1/zz_generated.deepcopy.go

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

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.20
go-version: "1.26"
id: go

- name: Check out code into the Go module directory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default:
image: golang:1.20
image: golang:1.26

stages:
- build
Expand Down
2 changes: 1 addition & 1 deletion cmd/plugin/builder/template/plugintemplates/gomod.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module {{ .RepositoryName }}

go 1.20
go 1.26
2 changes: 1 addition & 1 deletion docs/plugindev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ development of plugins using other programming languages, at the moment
the only supported means of plugin development is that which integrates with
the released version of the runtime library.

The minimum supported Go version is 1.18.
The minimum supported Go version is 1.26.

You will need Docker to be installed on your development system.

Expand Down
2 changes: 1 addition & 1 deletion docs/plugindev/style_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,5 @@ To propose changes please create an issue labelled `documentation`, and outline

### Accessibility Guidelines

* Web Content Accessibility Guidelines [WCAG](https://www.w3.org/TR/2008/REC-WCAG20-20081211/)
* Web Content Accessibility Guidelines [WCAG](https://www.w3.org/TR/WCAG20/)
* US section 508 [link](https://www.section508.gov/)
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-cli

go 1.22.7
go 1.26

replace cloud.google.com/go => cloud.google.com/go v0.102.1

Expand Down
11 changes: 11 additions & 0 deletions mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"retryOn429": true,
"retryCount": 3,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 302],
"ignorePatterns": [
{
"pattern": "^https://www\\.w3\\.org/"
Comment thread
anujc25 marked this conversation as resolved.
}
]
}
2 changes: 1 addition & 1 deletion test/e2e/coexistence/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base image and platform
FROM --platform=linux/amd64 golang:1.23
FROM --platform=linux/amd64 golang:1.26

# Tanzu CLI version and other build arguments
ARG TANZU_CLI_BUILD_VERSION
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu/tanzu-cli/test/e2e/framework

go 1.21
go 1.26

require (
github.com/onsi/ginkgo/v2 v2.12.0
Expand Down
2 changes: 1 addition & 1 deletion test/sample-plugin/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module sample-plugin

go 1.21
go 1.26

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

Expand Down
Loading