Repository: goreleaser/goreleaser
Pull request #1759 (2020-08-16 14:04:22)

feat: use go 1.15
use the latest and greatest :) 

vercel[bot]: This pull request is being automatically deployed with Vercel ([learn more](https://vercel.link/github-learn-more)).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: [https://vercel.com/goreleaser/goreleaser/m0uroohvv](https://vercel.com/goreleaser/goreleaser/m0uroohvv)  
✅ Preview: *In Progress*


codecov[bot]: # [Codecov](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=h1) Report
> Merging [#1759](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=desc) into [master](https://codecov.io/gh/goreleaser/goreleaser/commit/e79d1e0b8f8938c59edbcac2ce68f0b540602278&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/goreleaser/goreleaser/pull/1759/graphs/tree.svg?width=650&height=150&src=pr&token=3bJvv6b7hN)](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master    #1759   +/-   ##
=======================================
  Coverage   82.44%   82.44%           
=======================================
  Files          72       72           
  Lines        4159     4159           
=======================================
  Hits         3429     3429           
  Misses        609      609           
  Partials      121      121           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=footer). Last update [e79d1e0...e9dcc1c](https://codecov.io/gh/goreleaser/goreleaser/pull/1759?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 339ca5c4..131131ba 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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
diff --git a/.github/workflows/gosum.yml b/.github/workflows/gosum.yml
index 035fd782..5fbe3e1f 100644
--- a/.github/workflows/gosum.yml
+++ b/.github/workflows/gosum.yml
@@ -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: |
diff --git a/.goreleaser.yml b/.goreleaser.yml
index b1a9870a..49dc7eb0 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -16,9 +16,6 @@ builds:
     - amd64
     - arm
     - arm64
-  ignore:
-    - goos: darwin
-      goarch: 386
   mod_timestamp: '{{ .CommitTimestamp }}'
   flags:
     - -trimpath
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 300bea3d..1f20a5d7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -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)
diff --git a/Dockerfile.cgo b/Dockerfile.cgo
index 2cde5327..6d1ae7ab 100644
--- a/Dockerfile.cgo
+++ b/Dockerfile.cgo
@@ -1,4 +1,4 @@
-FROM golang:1.14-alpine
+FROM golang:1.15-alpine
 
 RUN apk add --no-cache bash \
                        build-base \
diff --git a/go.mod b/go.mod
index db74620c..a9d25dfd 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/goreleaser/goreleaser
 
-go 1.14
+go 1.15
 
 require (
 	code.gitea.io/sdk/gitea v0.12.1
diff --git a/internal/builders/golang/targets.go b/internal/builders/golang/targets.go
index 5af541c1..f01cab49 100644
--- a/internal/builders/golang/targets.go
+++ b/internal/builders/golang/targets.go
@@ -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
diff --git a/www/docs/ci/actions.md b/www/docs/ci/actions.md
index 8b98f668..31502057 100644
--- a/www/docs/ci/actions.md
+++ b/www/docs/ci/actions.md
@@ -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
diff --git a/www/docs/ci/circle.md b/www/docs/ci/circle.md
index 1f44be22..ab89c9ed 100644
--- a/www/docs/ci/circle.md
+++ b/www/docs/ci/circle.md
@@ -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
diff --git a/www/docs/ci/codefresh.md b/www/docs/ci/codefresh.md
index 0f85789e..4670cf1d 100644
--- a/www/docs/ci/codefresh.md
+++ b/www/docs/ci/codefresh.md
@@ -23,7 +23,7 @@ steps:
   BuildMyApp:
     title: Compiling go code
     stage: build
-    image: 'golang:1.14'
+    image: 'golang:1.15'
     commands:
       - go build
   ReleaseMyApp:


Test patch:
diff --git a/cmd/util_test.go b/cmd/util_test.go
index cc18a6a1..03911899 100644
--- a/cmd/util_test.go
+++ b/cmd/util_test.go
@@ -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
 `)
 }
 
diff --git a/internal/builders/golang/build_test.go b/internal/builders/golang/build_test.go
index 68fada0c..bcf0d8a9 100644
--- a/internal/builders/golang/build_test.go
+++ b/internal/builders/golang/build_test.go
@@ -65,7 +65,6 @@ func TestWithDefaults(t *testing.T) {
 				"linux_amd64",
 				"linux_386",
 				"darwin_amd64",
-				"darwin_386",
 			},
 		},
 	} {
diff --git a/internal/builders/golang/targets_test.go b/internal/builders/golang/targets_test.go
index f4b37f73..833bd18c 100644
--- a/internal/builders/golang/targets_test.go
+++ b/internal/builders/golang/targets_test.go
@@ -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},