Skip to content

Commit 59f379b

Browse files
authored
Upgrade to golang 1.19 (#313)
Signed-off-by: Jian Qiu <[email protected]>
1 parent 72d9192 commit 59f379b

File tree

18 files changed

+31
-442
lines changed

18 files changed

+31
-442
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.17
21+
go-version: 1.19
2222
- name: Check version
2323
run: |
2424
cat VERSION.txt | grep ${{ github.ref_name }}
2525
- name: Build project
2626
run: |
2727
make build-bin
2828
- name: Release
29-
uses: softprops/action-gh-release@v0.1.5
29+
uses: softprops/action-gh-release@v1
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
with:

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.17
19+
go-version: 1.19
2020
- name: verify
2121
run: make verify
2222

@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go
2828
uses: actions/setup-go@v3
2929
with:
30-
go-version: 1.17
30+
go-version: 1.19
3131
- name: Integration Tests
3232
run: make test-integration
3333

@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Go
4040
uses: actions/setup-go@v3
4141
with:
42-
go-version: 1.17
42+
go-version: 1.19
4343

4444
- name: E2E Tests
4545
run: make test-e2e

CHANGELOG.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
[comment]: # ( Copyright Contributors to the Open Cluster Management project )
22
# Release Content
33
## Additions
4-
- [refactor join command and add preflight check](https://github.com/open-cluster-management-io/clusteradm/pull/291) @ycyaoxdu
5-
- [add output option: json](https://github.com/open-cluster-management-io/clusteradm/pull/288) @ycyaoxdu
64

75
## Breaking Changes
8-
- [Add addon OWNERS files](https://github.com/open-cluster-management-io/clusteradm/pull/301) @dhaiducek
96

107
## Changes
11-
- [Update the Policy CRD to contain the spec.copyPolicyMetadata field](https://github.com/open-cluster-management-io/clusteradm/pull/305) @mprahl
12-
- [upgrade github action](https://github.com/open-cluster-management-io/clusteradm/pull/293) @ycyaoxdu
13-
- [Update klusterlet crd](https://github.com/open-cluster-management-io/clusteradm/pull/290) @zhujian7
14-
- [Update some policy crds to improve field descriptions](https://github.com/open-cluster-management-io/clusteradm/pull/286) @gparvin
8+
- [Unify help text for --bundle-version ](https://github.com/open-cluster-management-io/clusteradm/pull/311) @nirs
9+
- [Refine --bundle-version help](https://github.com/open-cluster-management-io/clusteradm/pull/312) @nirs
10+
- [Upgrade to golang 1.19](https://github.com/open-cluster-management-io/clusteradm/pull/312) @qiujian16
1511

1612
## Bug Fixes
17-
- [Fix: warning when klusterletApiServer doesn't start with https://](https://github.com/open-cluster-management-io/clusteradm/pull/297) @xuezhaojun
18-
- [Fix: preflight check should return no error when configmap cluster-info not exist.](https://github.com/open-cluster-management-io/clusteradm/pull/296) @xuezhaojun
13+

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ clean: clean-test clean-e2e
2121

2222
.PHONY: verify
2323
verify:
24-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
24+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1
2525
go vet ./...
2626
golangci-lint run --timeout=3m --modules-download-mode vendor -E gofmt ./...
2727

@@ -40,7 +40,7 @@ build-bin:
4040
@mkdir -p bin
4141
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_darwin_amd64.tar.gz LICENSE -C bin/ clusteradm
4242
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_darwin_arm64.tar.gz LICENSE -C bin/ clusteradm
43-
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_amd64.tar.gz LICENSE -C bin/ clusteradm
43+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_amd64.tar.gz LICENSE -C bin/ clusteradm
4444
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_arm64.tar.gz LICENSE -C bin/ clusteradm
4545
GOOS=linux GOARCH=ppc64le go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_ppc64le.tar.gz LICENSE -C bin/ clusteradm
4646
GOOS=linux GOARCH=s390x go build -ldflags="-s -w" -gcflags=-trimpath=x/y -o bin/clusteradm ./cmd/clusteradm/clusteradm.go && tar -czf bin/clusteradm_linux_s390x.tar.gz LICENSE -C bin/ clusteradm

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.5.0
1+
v0.5.1

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module open-cluster-management.io/clusteradm
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/briandowns/spinner v1.18.1

0 commit comments

Comments
 (0)