Repository: goreleaser/goreleaser
Pull request #3577 (2022-11-21 08:02:25)

feat(deps): bump github.com/disgoorg/disgo from 0.13.21 to 0.13.22
Bumps [github.com/disgoorg/disgo](https://github.com/disgoorg/disgo) from 0.13.21 to 0.13.22.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/disgoorg/disgo/releases">github.com/disgoorg/disgo's releases</a>.</em></p>
<blockquote>
<h2>v0.13.22</h2>
<h2>What's Changed</h2>
<ul>
<li>move json package into its own module <a href="https://github.com/disgoorg/json">https://github.com/disgoorg/json</a> by <a href="https://github.com/TopiSenpai"><code>@​TopiSenpai</code></a> in <a href="https://github-redirect.dependabot.com/disgoorg/disgo/pull/206">disgoorg/disgo#206</a></li>
<li>add <code>RegexPatterns</code> to <code>AutoModerationTriggerMetadata</code> by <a href="https://github.com/caneleex"><code>@​caneleex</code></a> in <a href="https://github-redirect.dependabot.com/disgoorg/disgo/pull/201">disgoorg/disgo#201</a></li>
<li>add <code>UserFlagActiveDeveloper</code> by <a href="https://github.com/caneleex"><code>@​caneleex</code></a> in <a href="https://github-redirect.dependabot.com/disgoorg/disgo/pull/208">disgoorg/disgo#208</a></li>
<li>add <code>ApplicationID</code> to <code>Message</code> by <a href="https://github.com/caneleex"><code>@​caneleex</code></a> in <a href="https://github.com/disgoorg/disgo/commit/4049f4c3ed13caac561204431338e748846b6588">https://github.com/disgoorg/disgo/commit/4049f4c3ed13caac561204431338e748846b6588</a></li>
<li>remove <code>GuildFeaturePrivateThreads</code> by <a href="https://github.com/caneleex"><code>@​caneleex</code></a> in <a href="https://github.com/disgoorg/disgo/commit/1855c7f01acfe041e4e5918f9811b0742f0c5775">https://github.com/disgoorg/disgo/commit/1855c7f01acfe041e4e5918f9811b0742f0c5775</a></li>
<li>rename <code>Stickers</code> to <code>StickerItems</code> by <a href="https://github.com/caneleex"><code>@​caneleex</code></a> in <a href="https://github.com/disgoorg/disgo/commit/65d39b859c5cff087bcb86963ac2bb20c6e3bbcb">https://github.com/disgoorg/disgo/commit/65d39b859c5cff087bcb86963ac2bb20c6e3bbcb</a></li>
</ul>
<h2>Breaking</h2>
<ul>
<li><code>GuildFeaturePrivateThreads</code> was removed</li>
<li><code>Stickers</code> in <code>Message</code> were renamed to <code>StickerItems</code></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/disgoorg/disgo/compare/v0.13.21...v0.13.22">https://github.com/disgoorg/disgo/compare/v0.13.21...v0.13.22</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/disgoorg/disgo/commit/65d39b859c5cff087bcb86963ac2bb20c6e3bbcb"><code>65d39b8</code></a> rename Stickers to StickerItems</li>
<li><a href="https://github.com/disgoorg/disgo/commit/4049f4c3ed13caac561204431338e748846b6588"><code>4049f4c</code></a> add ApplicationID to Message</li>
<li><a href="https://github.com/disgoorg/disgo/commit/1855c7f01acfe041e4e5918f9811b0742f0c5775"><code>1855c7f</code></a> remove GuildFeaturePrivateThreads</li>
<li><a href="https://github.com/disgoorg/disgo/commit/79251f5123cbef5493d127dc395142f9d49b5c63"><code>79251f5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/disgoorg/disgo/issues/208">#208</a> from disgoorg/patch/active-dev</li>
<li><a href="https://github.com/disgoorg/disgo/commit/a1546becb681a56baaef8c541da1d93a94d7b306"><code>a1546be</code></a> add UserFlagActiveDeveloper</li>
<li><a href="https://github.com/disgoorg/disgo/commit/bd480c2f503b33e66b886bc02c799469a3442ebb"><code>bd480c2</code></a> use new github.com/disgoorg/json module (<a href="https://github-redirect.dependabot.com/disgoorg/disgo/issues/206">#206</a>)</li>
<li><a href="https://github.com/disgoorg/disgo/commit/d539fda3f6b4781536a0de47bfb8f44d4ac67f3d"><code>d539fda</code></a> update github actions</li>
<li><a href="https://github.com/disgoorg/disgo/commit/cc0e3a137273de3c8a25755b271c2c8bea4c6879"><code>cc0e3a1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/disgoorg/disgo/issues/201">#201</a> from disgoorg/patch/automod-regex</li>
<li><a href="https://github.com/disgoorg/disgo/commit/d64d5ebf772eb7339ea7c425b32822ae35fe0a95"><code>d64d5eb</code></a> fix automod example</li>
<li><a href="https://github.com/disgoorg/disgo/commit/c9af872e5f0f36e9515107dab3d23e3dfd2b824f"><code>c9af872</code></a> add RegexPatterns to automod metadata</li>
<li>See full diff in <a href="https://github.com/disgoorg/disgo/compare/v0.13.21...v0.13.22">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/disgoorg/disgo&package-manager=go_modules&previous-version=0.13.21&new-version=0.13.22)](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/3577?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser) Report
> Merging [#3577](https://codecov.io/gh/goreleaser/goreleaser/pull/3577?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=goreleaser) (625aabb) 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    #3577   +/-   ##
=======================================
  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..c2635160 100644
--- a/go.mod
+++ b/go.mod
@@ -15,7 +15,7 @@ require (
 	github.com/charmbracelet/lipgloss v0.6.0
 	github.com/dghubble/go-twitter v0.0.0-20211115160449-93a8679adecb
 	github.com/dghubble/oauth1 v0.7.1
-	github.com/disgoorg/disgo v0.13.21
+	github.com/disgoorg/disgo v0.13.22
 	github.com/disgoorg/snowflake/v2 v2.0.1
 	github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible
 	github.com/google/go-github/v48 v48.1.0
@@ -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
@@ -104,6 +104,7 @@ require (
 	github.com/davecgh/go-spew v1.1.1 // indirect
 	github.com/dghubble/sling v1.4.0 // indirect
 	github.com/dimchansky/utfbom v1.1.1 // indirect
+	github.com/disgoorg/json v1.0.0 // indirect
 	github.com/disgoorg/log v1.2.0 // indirect
 	github.com/emirpasic/gods v1.12.0 // indirect
 	github.com/go-git/gcfg v1.5.0 // indirect
diff --git a/go.sum b/go.sum
index 674d70d5..892d7b77 100644
--- a/go.sum
+++ b/go.sum
@@ -528,8 +528,10 @@ github.com/digitalocean/godo v1.78.0/go.mod h1:GBmu8MkjZmNARE7IXRPmkbbnocNN8+uBm
 github.com/digitalocean/godo v1.81.0/go.mod h1:BPCqvwbjbGqxuUnIKB4EvS/AX7IDnNmt5fwvIkWo+ew=
 github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U=
 github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
-github.com/disgoorg/disgo v0.13.21 h1:mapasORJIZWGMcsAxTzosIHfBlx39g2KLbY/OJlJn3A=
-github.com/disgoorg/disgo v0.13.21/go.mod h1:VpRp9ifKNcQ05mgIx9l5oU4TADysXUGmNx9iHM9/DpA=
+github.com/disgoorg/disgo v0.13.22 h1:Vf49TkfC5djuMTbS9qdg/pr/pCNUxHQtx8/dMPu3aWI=
+github.com/disgoorg/disgo v0.13.22/go.mod h1:YiVpXSmyXLRalYQHTHUFWEQvolCNzw0zh6nfug07b/M=
+github.com/disgoorg/json v1.0.0 h1:kDhSM661fgIuNoZF3BO5/odaR5NSq80AWb937DH+Pdo=
+github.com/disgoorg/json v1.0.0/go.mod h1:BHDwdde0rpQFDVsRLKhma6Y7fTbQKub/zdGO5O9NqqA=
 github.com/disgoorg/log v1.2.0 h1:sqlXnu/ZKAlIlHV9IO+dbMto7/hCQ474vlIdMWk8QKo=
 github.com/disgoorg/log v1.2.0/go.mod h1:3x1KDG6DI1CE2pDwi3qlwT3wlXpeHW/5rVay+1qDqOo=
 github.com/disgoorg/snowflake/v2 v2.0.1 h1:CuUxGLwggUxEswZOmZ+mZ5i0xSumQdXW9tXW7uGqe+0=
@@ -1533,8 +1535,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)