1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

feat: use go 1.15 (#1759)

* Update to Go 1.15 image (#1758)

* feat: use go 1.15

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: remove darwin_386

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: Simon Jürgensmeyer <sj14@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2020-08-16 11:29:44 -03:00 committed by GitHub
parent a35ab24ce6
commit da22bf8eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 11 additions and 18 deletions

View File

@ -25,7 +25,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.15
-
name: Cache Go modules
uses: actions/cache@v2

View File

@ -20,7 +20,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.15
-
name: Tidy
run: |

View File

@ -16,9 +16,6 @@ builds:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath

View File

@ -10,7 +10,7 @@ conduct](/CODE_OF_CONDUCT.md).
Prerequisites:
- `make`
- [Go 1.14+](https://golang.org/doc/install)
- [Go 1.15+](https://golang.org/doc/install)
- [snapcraft](https://snapcraft.io/)
- [Docker](https://www.docker.com/)
- `gpg` (probably already installed on your system)

View File

@ -1,4 +1,4 @@
FROM golang:1.14-alpine
FROM golang:1.15-alpine
RUN apk add --no-cache bash \
build-base \

View File

@ -54,7 +54,7 @@ func createMainGo(t *testing.T) {
func goModInit(t *testing.T) {
createFile(t, "go.mod", `module foo
go 1.14
go 1.15
`)
}

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/goreleaser/goreleaser
go 1.14
go 1.15
require (
code.gitea.io/sdk/gitea v0.12.1

View File

@ -65,7 +65,6 @@ func TestWithDefaults(t *testing.T) {
"linux_amd64",
"linux_386",
"darwin_amd64",
"darwin_386",
},
},
} {

View File

@ -115,7 +115,7 @@ var validTargets = []string{
"androidamd64",
"androidarm",
"androidarm64",
"darwin386",
//"darwin386", - deprecated on latest go 1.15+
"darwinamd64",
// "darwinarm", - requires admin rights and other ios stuff
// "darwinarm64", - requires admin rights and other ios stuff

View File

@ -38,9 +38,6 @@ func TestAllBuildTargets(t *testing.T) {
},
Ignore: []config.IgnoredBuild{
{
Goos: "darwin",
Goarch: "386",
}, {
Goos: "linux",
Goarch: "arm",
Goarm: "7",
@ -92,7 +89,6 @@ func TestGoosGoarchCombos(t *testing.T) {
{"android", "amd64", true},
{"android", "arm", true},
{"android", "arm64", true},
{"darwin", "386", true},
{"darwin", "amd64", true},
{"dragonfly", "amd64", true},
{"freebsd", "386", true},
@ -124,6 +120,7 @@ func TestGoosGoarchCombos(t *testing.T) {
{"windows", "amd64", true},
{"js", "wasm", true},
// invalid targets
{"darwin", "386", false},
{"darwin", "arm", false},
{"darwin", "arm64", false},
{"windows", "arm", false},

View File

@ -34,7 +34,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.15
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2

View File

@ -18,7 +18,7 @@ workflows:
jobs:
release:
docker:
- image: circleci/golang:1.14
- image: circleci/golang:1.15
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash

View File

@ -23,7 +23,7 @@ steps:
BuildMyApp:
title: Compiling go code
stage: build
image: 'golang:1.14'
image: 'golang:1.15'
commands:
- go build
ReleaseMyApp: