You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	build: use go1.20 (#3757)
update everything to go 1.20 --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							9b7603ac74
						
					
				
				
					commit
					81914757da
				
			
							
								
								
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -20,14 +20,14 @@ jobs: | ||||
|     uses: caarlos0/meta/.github/workflows/govulncheck.yml@main | ||||
|     with: | ||||
|       cache: true | ||||
|       go-version: '>=1.19.5' | ||||
|       go-version: '>=1.20.0' | ||||
|   semgrep: | ||||
|     uses: caarlos0/meta/.github/workflows/semgrep.yml@main | ||||
|   ruleguard: | ||||
|     uses: caarlos0/meta/.github/workflows/ruleguard.yml@main | ||||
|     with: | ||||
|       cache: true | ||||
|       go-version: '>=1.19.4' | ||||
|       go-version: '>=1.20.0' | ||||
|       args: '-disable largeloopcopy' | ||||
|   test: | ||||
|     runs-on: ubuntu-latest | ||||
| @@ -52,7 +52,7 @@ jobs: | ||||
|           mkdir -p $HOME/.cache/snapcraft/stage-packages | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.4' | ||||
|       go-version: '>=1.20.0' | ||||
|           cache: true | ||||
|       - uses: sigstore/cosign-installer@v2.8.1 | ||||
|       - uses: anchore/sbom-action/download-syft@v0.13.3 | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							| @@ -18,7 +18,7 @@ jobs: | ||||
|     - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||||
|     - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|       with: | ||||
|         go-version: '>=1.19.5' | ||||
|         go-version: '>=1.20.0' | ||||
|         cache: true | ||||
|     - uses: github/codeql-action/init@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2 | ||||
|     - uses: github/codeql-action/autobuild@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2 | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/docs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/docs.yml
									
									
									
									
										vendored
									
									
								
							| @@ -23,7 +23,7 @@ jobs: | ||||
|           repo-token: ${{ secrets.GITHUB_TOKEN }} | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|       - run: task docs:build | ||||
|       - uses: wjdp/htmltest-action@09118714cd26bef56bd3d0819e4f9b1dce6f60a9 # master | ||||
|         with: | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/fig.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/fig.yml
									
									
									
									
										vendored
									
									
								
							| @@ -16,7 +16,7 @@ jobs: | ||||
|       - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|           cache: true | ||||
|       - run: go run . generate-fig-spec >goreleaser.ts | ||||
|       - uses: withfig/push-to-fig-autocomplete-action@v1 | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/generate.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/generate.yml
									
									
									
									
										vendored
									
									
								
							| @@ -24,7 +24,7 @@ jobs: | ||||
|           token: ${{ secrets.GH_PAT }} | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|           cache: true | ||||
|       - uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1 | ||||
|       - run: task docs:generate | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							| @@ -19,7 +19,7 @@ jobs: | ||||
|     steps: | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|       - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||||
|       - name: golangci-lint | ||||
|         uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3 | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -88,7 +88,7 @@ jobs: | ||||
|           mkdir -p $HOME/.cache/snapcraft/stage-packages | ||||
|       - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|           cache: true | ||||
|       - uses: actions/cache@627f0f41f6904a5b1efbaed9f96d9eb58e92e920 # v3 | ||||
|         with: | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| run: | ||||
|   go: 1.19 | ||||
|   go: 1.20 | ||||
| linters: | ||||
|   enable: | ||||
|     - thelper | ||||
|   | ||||
| @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our | ||||
| Prerequisites: | ||||
|  | ||||
| - [Task](https://taskfile.dev/#/installation) | ||||
| - [Go 1.19+](https://golang.org/doc/install) | ||||
| - [Go 1.20+](https://golang.org/doc/install) | ||||
|  | ||||
| Other things you might need to run the tests: | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| FROM golang:1.19.5-alpine@sha256:2381c1e5f8350a901597d633b2e517775eeac7a6682be39225a93b22cfd0f8bb | ||||
| FROM golang:1.20.0-alpine@sha256:1e2917143ce7e7bf8d1add2ac5c5fa3d358b2b5ddaae2bd6f54169ce68530ef0 | ||||
|  | ||||
| RUN apk add --no-cache bash \ | ||||
| 	curl \ | ||||
|   | ||||
| @@ -62,7 +62,7 @@ func goModInit(tb testing.TB) { | ||||
| 	tb.Helper() | ||||
| 	createFile(tb, "go.mod", `module foo | ||||
|  | ||||
| go 1.19 | ||||
| go 1.20 | ||||
| `) | ||||
| } | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| module github.com/goreleaser/goreleaser | ||||
|  | ||||
| go 1.19 | ||||
| go 1.20 | ||||
|  | ||||
| require ( | ||||
| 	code.gitea.io/sdk/gitea v0.15.1 | ||||
|   | ||||
| @@ -222,7 +222,7 @@ func requireGoMod(tb testing.TB) { | ||||
| 	require.NoError(tb, err) | ||||
| 	require.Contains(tb, string(mod), `module foo | ||||
|  | ||||
| go 1.19 | ||||
| go 1.20 | ||||
| `) | ||||
| } | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								internal/pipe/ko/testdata/app/go.mod
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								internal/pipe/ko/testdata/app/go.mod
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,3 @@ | ||||
| module testapp | ||||
|  | ||||
| go 1.19 | ||||
| go 1.20 | ||||
|   | ||||
| @@ -33,7 +33,7 @@ const ( | ||||
| ) | ||||
|  | ||||
| func TestMain(m *testing.M) { | ||||
| 	rand.Seed(time.Now().UnixNano()) | ||||
| 	rand := rand.New(rand.NewSource(time.Now().UnixNano())) | ||||
| 	keyring = fmt.Sprintf("/tmp/gorel_gpg_test.%d", rand.Int()) | ||||
| 	fmt.Println("copying", originKeyring, "to", keyring) | ||||
| 	if err := exec.Command("cp", "-Rf", originKeyring, keyring).Run(); err != nil { | ||||
|   | ||||
| @@ -36,7 +36,7 @@ jobs: | ||||
|       - run: git fetch --force --tags | ||||
|       - uses: actions/setup-go@v3 | ||||
|         with: | ||||
|           go-version: '>=1.19.5' | ||||
|           go-version: '>=1.20.0' | ||||
|           cache: true | ||||
|       # More assembly might be required: Docker logins, GPG, etc. It all depends | ||||
|       # on your needs. | ||||
|   | ||||
| @@ -72,7 +72,7 @@ trigger: | ||||
|       - refs/tags/* | ||||
|  | ||||
| variables: | ||||
|   GO_VERSION: "1.19" | ||||
|   GO_VERSION: "1.20" | ||||
|  | ||||
| pool: | ||||
|   vmImage: ubuntu-latest | ||||
|   | ||||
| @@ -18,7 +18,7 @@ workflows: | ||||
| jobs: | ||||
|   release: | ||||
|     docker: | ||||
|       - image: cimg/go:1.19 | ||||
|       - image: cimg/go:1.20 | ||||
|     steps: | ||||
|       - checkout | ||||
|       - run: curl -sfL https://goreleaser.com/static/run | bash | ||||
|   | ||||
| @@ -23,7 +23,7 @@ steps: | ||||
|   BuildMyApp: | ||||
|     title: Compiling go code | ||||
|     stage: build | ||||
|     image: 'golang:1.19' | ||||
|     image: 'golang:1.20' | ||||
|     commands: | ||||
|       - go build | ||||
|   ReleaseMyApp: | ||||
|   | ||||
| @@ -10,7 +10,7 @@ By participating in this project, you agree to abide our | ||||
| Prerequisites: | ||||
|  | ||||
| - [Task](https://taskfile.dev/#/installation) | ||||
| - [Go 1.19+](https://golang.org/doc/install) | ||||
| - [Go 1.20+](https://golang.org/doc/install) | ||||
|  | ||||
| Other things you might need to run the tests: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user