Repository: goreleaser/goreleaser
Pull request #3578 (2022-11-21 08:02:33)

feat(deps): bump github.com/xanzy/go-gitlab from 0.74.0 to 0.76.0
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.74.0 to 0.76.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/xanzy/go-gitlab/commit/ffa70b0849511e92443506879f9bfb72b7968415"><code>ffa70b0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1573">#1573</a> from timofurrer/feature/metadata</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/4c641dfb87b421ccb3cb1d15c4cc716fc988d0f0"><code>4c641df</code></a> Implement Metadata API</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/d21dc36e99f65ebe14a4f6bcd24dab95a9029022"><code>d21dc36</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1575">#1575</a> from mycrEEpy/email-confirmed-at</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/710f2879e9d2476af393a890f84d1f52d4f50d9d"><code>710f287</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1576">#1576</a> from r8ygun/master</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/fce97724a0177a5ec2e7da45a47b63e4c1306ed4"><code>fce9772</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1506">#1506</a> from timofurrer/feature/avatars</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/02292fff2c19f9b27b4cb982b8c4d0dae3a72f2d"><code>02292ff</code></a> Fully support project and group avatars</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/677a0fa2f77b84b3166b4b6bb3f21de20a533628"><code>677a0fa</code></a> Add ID parameter to FeatureFlagStrategyOptions</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/a258c409a9da266fc1b4f1579ff4f27475744155"><code>a258c40</code></a> add ConfirmedAt to Email</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/3ef2120d1f4eccaafc64349c8a4ad70a0c3e054d"><code>3ef2120</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1570">#1570</a> from FelixKampfer/add_field_to_projects_struct</li>
<li><a href="https://github.com/xanzy/go-gitlab/commit/4172c04a9092ccc101cdde1a0f1a0fafd35d0f5c"><code>4172c04</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/xanzy/go-gitlab/issues/1572">#1572</a> from timofurrer/feature/settings-can-create-group</li>
<li>Additional commits viewable in <a href="https://github.com/xanzy/go-gitlab/compare/v0.74.0...v0.76.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/xanzy/go-gitlab&package-manager=go_modules&previous-version=0.74.0&new-version=0.76.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

codecov[bot]: # [Codecov](https://codecov.io/gh/goreleaser/goreleaser/pull/3578?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser) Report
> Merging [#3578](https://codecov.io/gh/goreleaser/goreleaser/pull/3578?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser) (3c5032c) into [main](https://codecov.io/gh/goreleaser/goreleaser/commit/8cc24a55a2622502e8c3117d4c0e216b47cb4f82?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser) (8cc24a5) will **not change** coverage.
> The diff coverage is `n/a`.

```diff
@@           Coverage Diff           @@
##             main    #3578   +/-   ##
=======================================
  Coverage   83.87%   83.87%           
=======================================
  Files         117      117           
  Lines        9750     9750           
=======================================
  Hits         8178     8178           
  Misses       1268     1268           
  Partials      304      304           
```



Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser)


Patch:
diff --git a/go.mod b/go.mod
index 3e8767fe..6ecc1745 100644
--- a/go.mod
+++ b/go.mod
@@ -36,7 +36,7 @@ require (
 	github.com/stretchr/testify v1.8.1
 	github.com/ulikunitz/xz v0.5.10
 	github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1
-	github.com/xanzy/go-gitlab v0.74.0
+	github.com/xanzy/go-gitlab v0.76.0
 	gocloud.dev v0.27.0
 	golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
 	golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c
diff --git a/go.sum b/go.sum
index 674d70d5..653b5b44 100644
--- a/go.sum
+++ b/go.sum
@@ -1533,8 +1533,8 @@ github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT
 github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI=
 github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1 h1:+dBg5k7nuTE38VVdoroRsT0Z88fmvdYrI2EjzJst35I=
 github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1/go.mod h1:nmuySobZb4kFgFy6BptpXp/BBw+xFSyvVPP6auoJB4k=
-github.com/xanzy/go-gitlab v0.74.0 h1:Ha1cokbjn0PXy6B19t3W324dwM4AOT52fuHr7nERPrc=
-github.com/xanzy/go-gitlab v0.74.0/go.mod h1:d/a0vswScO7Agg1CZNz15Ic6SSvBG9vfw8egL99t4kA=
+github.com/xanzy/go-gitlab v0.76.0 h1:mkmuB27RDVZY/iXR61pEUfIqJ15Iivfu1kc3KZtBICI=
+github.com/xanzy/go-gitlab v0.76.0/go.mod h1:d/a0vswScO7Agg1CZNz15Ic6SSvBG9vfw8egL99t4kA=
 github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0=
 github.com/xanzy/ssh-agent v0.3.1 h1:AmzO1SSWxw73zxFZPRwaMN1MohDw8UyHnmuxyceTEGo=
 github.com/xanzy/ssh-agent v0.3.1/go.mod h1:QIE4lCeL7nkC25x+yA3LBIYfwCc1TFziCtG7cBAac6w=
diff --git a/internal/builders/golang/build.go b/internal/builders/golang/build.go
index 0d3c6366..6c53b2ef 100644
--- a/internal/builders/golang/build.go
+++ b/internal/builders/golang/build.go
@@ -53,7 +53,7 @@ func (*Builder) WithDefaults(build config.Build) (config.Build, error) {
 	}
 	if len(build.Targets) == 0 {
 		if len(build.Goos) == 0 {
-			build.Goos = []string{"linux", "darwin"}
+			build.Goos = []string{"linux", "darwin", "windows"}
 		}
 		if len(build.Goarch) == 0 {
 			build.Goarch = []string{"amd64", "arm64", "386"}
diff --git a/www/docs/customization/build.md b/www/docs/customization/build.md
index a069958c..472cf50c 100644
--- a/www/docs/customization/build.md
+++ b/www/docs/customization/build.md
@@ -77,7 +77,7 @@ builds:
 
     # GOOS list to build for.
     # For more info refer to: https://golang.org/doc/install/source#environment
-    # Defaults are darwin and linux.
+    # Defaults are darwin, linux, and windows.
     goos:
       - freebsd
       - windows


Test patch:
diff --git a/internal/builders/golang/build_test.go b/internal/builders/golang/build_test.go
index 40f63800..4ddfe5a7 100644
--- a/internal/builders/golang/build_test.go
+++ b/internal/builders/golang/build_test.go
@@ -77,6 +77,9 @@ func TestWithDefaults(t *testing.T) {
 				"linux_arm64",
 				"darwin_amd64_v1",
 				"darwin_arm64",
+				"windows_amd64_v1",
+				"windows_arm64",
+				"windows_386",
 			},
 			goBinary: "go",
 		},
@@ -167,6 +170,9 @@ func TestWithDefaults(t *testing.T) {
 				"linux_arm64",
 				"darwin_amd64_v1",
 				"darwin_arm64",
+				"windows_amd64_v1",
+				"windows_arm64",
+				"windows_386",
 			},
 			goBinary: "go",
 		},
@@ -182,6 +188,9 @@ func TestWithDefaults(t *testing.T) {
 				"linux_arm64",
 				"darwin_amd64_v1",
 				"darwin_arm64",
+				"windows_amd64_v1",
+				"windows_arm64",
+				"windows_386",
 			},
 			goBinary: "go",
 		},
diff --git a/internal/pipe/build/build_test.go b/internal/pipe/build/build_test.go
index 596b0e07..f89a8acd 100644
--- a/internal/pipe/build/build_test.go
+++ b/internal/pipe/build/build_test.go
@@ -275,7 +275,7 @@ func TestDefaultEmptyBuild(t *testing.T) {
 	require.Equal(t, ctx.Config.ProjectName, build.Binary)
 	require.Equal(t, ".", build.Dir)
 	require.Equal(t, ".", build.Main)
-	require.Equal(t, []string{"linux", "darwin"}, build.Goos)
+	require.Equal(t, []string{"linux", "darwin", "windows"}, build.Goos)
 	require.Equal(t, []string{"amd64", "arm64", "386"}, build.Goarch)
 	require.Equal(t, []string{"6"}, build.Goarm)
 	require.Equal(t, []string{"hardfloat"}, build.Gomips)
@@ -373,7 +373,7 @@ func TestDefaultPartialBuilds(t *testing.T) {
 		require.Equal(t, "foo", build.Binary)
 		require.Equal(t, ".", build.Main)
 		require.Equal(t, "baz", build.Dir)
-		require.Equal(t, []string{"linux", "darwin"}, build.Goos)
+		require.Equal(t, []string{"linux", "darwin", "windows"}, build.Goos)
 		require.Equal(t, []string{"386"}, build.Goarch)
 		require.Equal(t, []string{"6"}, build.Goarm)
 		require.Len(t, build.Ldflags, 1)