Carlos A Becker 
							
						 
					 
					
						
						
							
						
						137ed3be74 
					 
					
						
						
							
							feat(deps): update caarlos0/env to v8  
						
						... 
						
						
						
						Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-04-07 01:50:09 +00:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						dc6a4e7e2f 
					 
					
						
						
							
							feat: allow to forcefully use a token when multiple are set ( #3910 )  
						
						... 
						
						
						
						This would allow to, when multiple tokens are set in the environment,
force which one you want to use.
The need for this comes from the fact gitea sets both `GITHUB_TOKEN` and
`GITEA_TOKEN`, and doesn't allow to easily disable either.
With this, users can add a `GORELEASER_FORCE_TOKEN=gitea` to force the
gitea client to be used.
I'm not sure what's the best name for this env yet, happy to hear
suggestions.
Also improved the `env_test.go` file a bit, as it was kinda messy with
env vars...
refs https://github.com/orgs/goreleaser/discussions/3900 
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-04-05 16:33:22 -03:00 
						 
				 
			
				
					
						
							
							
								Lars Lehtonen 
							
						 
					 
					
						
						
							
						
						5af2c31c7a 
					 
					
						
						
							
							refactor: fix redundant net/http import ( #3897 )  
						
						... 
						
						
						
						This fixes a redundant import of `net/http` in `internal/pipe/upload`.
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com > 
						
						
					 
					
						2023-03-30 08:54:52 -03:00 
						 
				 
			
				
					
						
							
							
								dependabot[bot] 
							
						 
					 
					
						
						
							
						
						43731e252c 
					 
					
						
						
							
							feat(deps): bump github.com/google/ko from 0.12.0 to 0.13.0 ( #3880 )  
						
						... 
						
						
						
						Bumps [github.com/google/ko](https://github.com/google/ko ) from 0.12.0
to 0.13.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/google/ko/releases ">github.com/google/ko's
releases</a>.</em></p>
<blockquote>
<h2>v0.13.0</h2>
<h2>What's Changed</h2>
<ul>
<li>SPDX: Fix package manager label by <a
href="https://github.com/puerco "><code>@puerco</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/801 ">ko-build/ko#801</a></li>
<li>SPDX 2.3 support by <a
href="https://github.com/puerco "><code>@puerco</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/803 ">ko-build/ko#803</a></li>
<li>ci: build and test using 1.18 and 1.19 (drop 1.17) by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/812 ">ko-build/ko#812</a></li>
<li>removes repo move message by <a
href="https://github.com/mchmarny "><code>@mchmarny</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/814 ">ko-build/ko#814</a></li>
<li>feat: write sbom result to disk by <a
href="https://github.com/developer-guy "><code>@developer-guy</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/822 ">ko-build/ko#822</a></li>
<li>feat: adding support for using multiple keychain for sending sbom
results to a different repository by <a
href="https://github.com/developer-guy "><code>@developer-guy</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/821 ">ko-build/ko#821</a></li>
<li>Move docs to ko.build by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/749 ">ko-build/ko#749</a></li>
<li>Update setup-ko version by <a
href="https://github.com/ianlewis "><code>@ianlewis</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/836 ">ko-build/ko#836</a></li>
<li>Add -- usage in readme by <a
href="https://github.com/jwcesign "><code>@jwcesign</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/840 ">ko-build/ko#840</a></li>
<li>add CONTRIBUTING, code of conduct, roadmap by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/837 ">ko-build/ko#837</a></li>
<li>attempt to fix GH Pages publishing by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/843 ">ko-build/ko#843</a></li>
<li>doc: fix link to Installation page in Getting Started by <a
href="https://github.com/antoineco "><code>@antoineco</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/846 ">ko-build/ko#846</a></li>
<li>.ko.yaml: bump golang 1.18 -> 1.19 by <a
href="https://github.com/srenatus "><code>@srenatus</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/848 ">ko-build/ko#848</a></li>
<li>truncate -image-refs file by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/855 ">ko-build/ko#855</a></li>
<li>update docs: fix broken links, align with README by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/854 ">ko-build/ko#854</a></li>
<li>Handle KO_DOCKER_REPO=ko.local/repo and --bare correctly by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/820 ">ko-build/ko#820</a></li>
<li>another docs update by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/856 ">ko-build/ko#856</a></li>
<li>ko.build: support some common shortlinks by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/872 ">ko-build/ko#872</a></li>
<li>install: fail with 404 instead of gzip error when url was wrong by
<a href="https://github.com/grosser "><code>@grosser</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/879 ">ko-build/ko#879</a></li>
<li>feat: deduplicate tags by <a
href="https://github.com/bluebrown "><code>@bluebrown</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/884 ">ko-build/ko#884</a></li>
<li>install mkdocs-redirect when publishing site by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/873 ">ko-build/ko#873</a></li>
<li>nit: replace one-item slice with const by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/885 ">ko-build/ko#885</a></li>
<li>Temp fix for SLSA generators by <a
href="https://github.com/laurentsimon "><code>@laurentsimon</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/886 ">ko-build/ko#886</a></li>
<li>Fix verifier by <a
href="https://github.com/laurentsimon "><code>@laurentsimon</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/891 ">ko-build/ko#891</a></li>
<li>Fix link in static-assets.md by <a
href="https://github.com/yuryu "><code>@yuryu</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/893 ">ko-build/ko#893</a></li>
<li>add KO_DEFAULTBASEIMAGE usage to docs by <a
href="https://github.com/developer-guy "><code>@developer-guy</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/895 ">ko-build/ko#895</a></li>
<li>Publish an tagged image on release by <a
href="https://github.com/vdemeester "><code>@vdemeester</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/868 ">ko-build/ko#868</a></li>
<li>Add option to configure default platforms by <a
href="https://github.com/ReToCode "><code>@ReToCode</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/897 ">ko-build/ko#897</a></li>
<li>Fix broken SLSA link by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/899 ">ko-build/ko#899</a></li>
<li>add MAINTAINERS.md by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/905 ">ko-build/ko#905</a></li>
<li>fix: possible race condition when applying templates to
flags/ldflags by <a
href="https://github.com/caarlos0 "><code>@caarlos0</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/913 ">ko-build/ko#913</a></li>
<li>update docs to reflect actual default base image by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/903 ">ko-build/ko#903</a></li>
<li>remove repeated error message on failure by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/921 ">ko-build/ko#921</a></li>
<li>website: update CNCF announcement by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/920 ">ko-build/ko#920</a></li>
<li>fix KO_CONFIG_PATH pointing to a file by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/923 ">ko-build/ko#923</a></li>
<li>upgrade to cosign v2.0.0-rc.0 by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/933 ">ko-build/ko#933</a></li>
<li>Feature: Add ECR presubmit testing. by <a
href="https://github.com/mattmoor "><code>@mattmoor</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/934 ">ko-build/ko#934</a></li>
<li>remove 'ko deps' by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/937 ">ko-build/ko#937</a></li>
<li>feat: Add KO_GO_PATH env var by <a
href="https://github.com/embano1 "><code>@embano1</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/930 ">ko-build/ko#930</a></li>
<li>add ko.build/slack short link by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/945 ">ko-build/ko#945</a></li>
<li>update link to ko goreleaser docs by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/936 ">ko-build/ko#936</a></li>
<li>add ko community meeting details by <a
href="https://github.com/developer-guy "><code>@developer-guy</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/938 ">ko-build/ko#938</a></li>
<li>fix cosign by adding --yes by <a
href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/973 ">ko-build/ko#973</a></li>
<li>fix: handle docker's unknown/unknown platform in index manifests by
<a href="https://github.com/imjasonh "><code>@imjasonh</code></a> in <a
href="https://redirect.github.com/ko-build/ko/pull/975 ">ko-build/ko#975</a></li>
<li>fix file extension for cyclonedx by <a
href="https://github.com/developer-guy "><code>@developer-guy</code></a>
in <a
href="https://redirect.github.com/ko-build/ko/pull/974 ">ko-build/ko#974</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/ianlewis "><code>@ianlewis</code></a>
made their first contribution in <a
href="https://redirect.github.com/ko-build/ko/pull/836 ">ko-build/ko#836</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e22e7a15ffhttps://github.com/main "><code>@main</code></a> (<a
href="https://redirect.github.com/google/ko/issues/976 ">#976</a>)</li>
<li><a
href="8e075ae1f1https://redirect.github.com/google/ko/issues/974 ">#974</a>)</li>
<li><a
href="11670b7498https://redirect.github.com/google/ko/issues/975 ">#975</a>)</li>
<li><a
href="7ce947817ehttps://redirect.github.com/google/ko/issues/973 ">#973</a>)</li>
<li><a
href="9302da78dchttps://redirect.github.com/google/ko/issues/972 ">#972</a>)</li>
<li><a
href="a1588838bahttps://redirect.github.com/google/ko/issues/971 ">#971</a>)</li>
<li><a
href="86b6c2854fhttps://redirect.github.com/google/ko/issues/966 ">#966</a>)</li>
<li><a
href="0bd12fb106https://redirect.github.com/google/ko/issues/967 ">#967</a>)</li>
<li><a
href="d5125daacdhttps://redirect.github.com/google/ko/issues/965 ">#965</a>)</li>
<li><a
href="03f4aed682https://redirect.github.com/google/ko/issues/938 ">#938</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/google/ko/compare/v0.12.0...v0.13.0 ">compare
view</a></li>
</ul>
</details>
<br />
[](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>
---------
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>
Co-authored-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-29 14:38:57 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						4ada24b6a8 
					 
					
						
						
							
							refactor: remove unused function  
						
						... 
						
						
						
						refs f4fad65471#3891 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-29 13:25:26 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						f4fad65471 
					 
					
						
						
							
							fix: improve gpg.program detection, add more tests  
						
						... 
						
						
						
						Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-29 13:23:23 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						9a97aaae99 
					 
					
						
						
							
							fix: improve brew no archive error ( #3895 )  
						
						... 
						
						
						
						similar to #3894 , but for homebrew
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-29 10:24:53 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						37e92ce2f1 
					 
					
						
						
							
							fix: clarify scoop no windows error ( #3894 )  
						
						... 
						
						
						
						improve error message and related docs
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-29 10:18:40 -03:00 
						 
				 
			
				
					
						
							
							
								Go Compile 
							
						 
					 
					
						
						
							
						
						d83d362b96 
					 
					
						
						
							
							fix(sign): use gpg path from git config by default if it is set ( #3891 )  
						
						... 
						
						
						
						Fixes issue #3890  by checking the user's git `gpg.program`
configuration. If the user didn't set this value it will use the default
"gpg", just like before this PR.
No need to add a additional unit test as your existing tests cover it
(mostly); however, a comment has been added to that check, informing the
reader that the test environment assumes `git config gpg.program` is not
be set. 
						
						
					 
					
						2023-03-27 12:00:24 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						723484d157 
					 
					
						
						
							
							fix: do not skip scoop on draft releases ( #3889 )  
						
						... 
						
						
						
						all other pipes don't, not sure why scoop was doing it.
closes  #3887  
						
						
					 
					
						2023-03-24 00:02:15 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						44f8fae305 
					 
					
						
						
							
							feat: IsDraft template variable ( #3888 )  
						
						... 
						
						
						
						allows to use `{{ .IsDraft }}` in templates.
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-24 00:01:48 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						f82a32cd3a 
					 
					
						
						
							
							feat: blobs.disable ( #3884 )  
						
						... 
						
						
						
						Allows to template-disable specific blob configurations.
Closes  #3883  
						
						
					 
					
						2023-03-23 08:59:04 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						7229a0dab0 
					 
					
						
						
							
							refactor: pipe.Skipf  
						
						
						
						
					 
					
						2023-03-22 23:49:48 -03:00 
						 
				 
			
				
					
						
							
							
								Maxime Brunet 
							
						 
					 
					
						
						
							
						
						c47315fead 
					 
					
						
						
							
							feat(ko): support labels and creation times ( #3852 )  
						
						... 
						
						
						
						* Add a `labels` key-value map to the `kos` config.
My interest is to be able to label the built images:
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#labelling-container-images 
* Add creation times to allow using the commit timestamp as meaningful
creation time 
						
						
					 
					
						2023-03-20 16:05:44 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						98eb6a2e98 
					 
					
						
						
							
							test: fix gitlab test  
						
						... 
						
						
						
						Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-20 09:29:14 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						a66fdd0718 
					 
					
						
						
							
							test: fix deprecate test  
						
						... 
						
						
						
						Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-20 09:29:14 -03:00 
						 
				 
			
				
					
						
							
							
								howieyuen 
							
						 
					 
					
						
						
							
						
						1f56d8e088 
					 
					
						
						
							
							feat: scoop shortcuts ( #3846 )  
						
						... 
						
						
						
						close: https://github.com/goreleaser/goreleaser/issues/3845  
						
						
					 
					
						2023-03-20 09:21:44 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						88f3aea086 
					 
					
						
						
							
							refactor: improve tmpl mergeability with pro  
						
						... 
						
						
						
						Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-19 23:32:33 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						590eff32d2 
					 
					
						
						
							
							feat: .Now template variable ( #3853 )  
						
						... 
						
						
						
						This will allow more customized templates using dates!
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-19 22:21:43 -03:00 
						 
				 
			
				
					
						
							
							
								Ivan Vandot 
							
						 
					 
					
						
						
							
						
						8877fe1ef4 
					 
					
						
						
							
							feat: include prerelease suffix in git ( #3841 )  
						
						... 
						
						
						
						<!--
Hi, thanks for contributing!
Please make sure you read our CONTRIBUTING guide.
Also, add tests and the respective documentation changes as well.
-->
<!-- If applied, this commit will... -->
This commit will fix bad version tag sort if there is a prerelease on
the same commit as a release tag. Current output is shown below
```
❯ git tag --points-at HEAD --sort=-version:refname --format='%(creatordate)%09%(refname)'
Thu Mar 2 21:38:51 2023 +0300   refs/tags/v1.13.0-rc3
Thu Mar 2 21:38:51 2023 +0300   refs/tags/v1.13.0
```
Test is changed to match current default value so it will fail without
this fix.
Default value `-` is set to the one that is described inside
[docs](https://goreleaser.com/how-it-works/?h=prerelease#how-it-works ),
but people are still allowed to change it.
Output with fix applied
```
❯ git -c versionsort.suffix=- tag --points-at HEAD --sort -version:refname --format='%(creatordate)%09%(refname)'
Thu Mar 2 21:38:51 2023 +0300   refs/tags/v1.13.0
Thu Mar 2 21:38:51 2023 +0300   refs/tags/v1.13.0-rc3
```
<!-- # Provide links to any relevant tickets, URLs or other resources
-->
More info about `versionsort.suffix` can be found
[here](https://github.com/git/git/blob/master/Documentation/config/versionsort.txt#L5 )
Docs as well both schemas are updated as well.
I am not sure if users should be allowed to change this option at all. 
						
						
					 
					
						2023-03-19 22:19:40 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						a459911f45 
					 
					
						
						
							
							fix: many linting issues  
						
						... 
						
						
						
						refs #3874 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-19 22:17:18 -03:00 
						 
				 
			
				
					
						
							
							
								Maxime Brunet 
							
						 
					 
					
						
						
							
						
						53277590f5 
					 
					
						
						
							
							fix(ko): disable SBOM when sbom is none ( #3861 )  
						
						
						
						
					 
					
						2023-03-10 23:31:46 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						a40eb15618 
					 
					
						
						
							
							feat: add base template function ( #3834 )  
						
						... 
						
						
						
						refs #3833 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-04 12:16:37 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						82144cb2c0 
					 
					
						
						
							
							test: improve file not found checkings ( #3831 )  
						
						... 
						
						
						
						using `errors.Is` everywhere, as file not found errors have different
messages on different OSes. 
						
						
					 
					
						2023-03-04 12:16:26 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						874d698564 
					 
					
						
						
							
							feat: add healthcheck cmd  ( #3826 )  
						
						... 
						
						
						
						here's an idea: `goreleaser healthcheck`
It'll check if the needed dependencies (docker, git, etc) are available
in the path... this way users can preemptively run it before releasing
or to debug issues.
What do you think?
Here's how it looks like:
<img width="1007" alt="CleanShot 2023-03-02 at 23 24 26@2x"
src="https://user-images.githubusercontent.com/245435/222615682-d9cd0733-d900-43d1-9166-23b2be589b3a.png ">
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-03 09:50:15 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						b6dd26c091 
					 
					
						
						
							
							feat: infer package name from go.mod ( #3827 )  
						
						... 
						
						
						
						If all other strategies fail, try to infer the `package_name` property
from the `go.mod` file, using its last segment as the actual package
name.
This is not perfect, but usually this will only be used when running
against a new project, with no git url, empty/default config, etc... so,
in reality, it'll rarely be used.
closes  #3825 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-03 09:50:02 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						2920de7cec 
					 
					
						
						
							
							feat: templateable changelog.skip ( #3830 )  
						
						... 
						
						
						
						closes  #3828  
					
						2023-03-03 09:49:41 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						be3a1b22d4 
					 
					
						
						
							
							fix: create temp docker outside dist ( #3823 )  
						
						... 
						
						
						
						Creating the temp dir for docker builds was required back in the day
because we symlinked the files, so to avoid different filesystems et al,
this was the easier solution.
Since many versions ago, we switched to copying the files instead, which
works a lot better.
This also means we don't need the dist check for extra files anymore, as
long as we create the temp outside dist.
All that said, this PR does 2 things:
- changes the docker pipe to create the dist in the user's tempdir
instead of dist
- removes the dist path check for docker's extra files
closes  #3790 
closes  #3791  
						
						
					 
					
						2023-03-02 21:01:33 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						9e21511300 
					 
					
						
						
							
							feat: cosign update ( #3821 )  
						
						... 
						
						
						
						cosign v2 update!
- need to use `--yes` to auto-approve prompts
cc/ @cpanato anything else I'm missing?
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-02 15:11:43 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						d5151a6eb0 
					 
					
						
						
							
							feat: ConventionalExtension on nFPM ( #3822 )  
						
						... 
						
						
						
						closes  #3799 
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-02 14:35:55 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						f544c5ce69 
					 
					
						
						
							
							test: testctx pkg ( #3807 )  
						
						... 
						
						
						
						alternative to #3806  
the idea is that both `context.New` and `context.Context{}` are never
used in tests.
not sure yet how much I like it, so far code does look a bit more
readable though.
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-02 00:01:11 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						53838da8ac 
					 
					
						
						
							
							fix: smtp mixup of env and yaml opts ( #3815 )  
						
						... 
						
						
						
						it was forcing to provide the same information as env and yaml.
this should fix it.
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-01 01:38:53 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						acc9eea154 
					 
					
						
						
							
							feat(deps): update env to v7 ( #3814 )  
						
						... 
						
						
						
						env v7!
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-01 01:20:37 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						2634fbdad4 
					 
					
						
						
							
							fix: race condition on artifacts.List ( #3813 )  
						
						... 
						
						
						
						I have no idea why this never happened before... the lock was
ineffective in `artifacts.List`, which should have caused at least some
race condition at some point.
Anyway, got it once locally while working on another feature, and
couldn't believe my eyes.
Fixed, thank goodness!
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-03-01 01:05:30 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						4f7475eee1 
					 
					
						
						
							
							fix: meta archives make the other archives be ignored ( #3804 )  
						
						
						
						
					 
					
						2023-02-24 14:58:09 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						702164076d 
					 
					
						
						
							
							fix: skip publish on exec ( #3800 )  
						
						
						
						
					 
					
						2023-02-22 23:13:34 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						1aa984d006 
					 
					
						
						
							
							fix: convert to forward slashes inside gio.Copy ( #3794 )  
						
						... 
						
						
						
						closes  #3776 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
					
						2023-02-22 20:02:12 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						9dfa94cbb3 
					 
					
						
						
							
							feat: scoop depends ( #3797 )  
						
						... 
						
						
						
						closes  #3796 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
					
						2023-02-22 09:18:44 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						1858bace7e 
					 
					
						
						
							
							fix: nfpm replacements deprecation ( #3793 )  
						
						... 
						
						
						
						closes  #3792 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-21 21:54:18 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						2c80588251 
					 
					
						
						
							
							fix: better handle password protected keys ( #3788 )  
						
						... 
						
						
						
						password-protected keys would give path errors, which was simply not
right.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-20 13:18:12 -03:00 
						 
				 
			
				
					
						
							
							
								John Olheiser 
							
						 
					 
					
						
						
							
						
						6c21b01586 
					 
					
						
						
							
							feat: add OpenCollective ( #3753 )  
						
						... 
						
						
						
						This PR adds [OpenCollective](https://opencollective.com ) as an
announcement pipeline.

---------
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-09 09:11:47 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						99ae082237 
					 
					
						
						
							
							feat: finally deprecate the single build option ( #3758 )  
						
						... 
						
						
						
						This option was still being supported, even though undocumented, for
many years now.
I think it's finally time to sunset it for good, in 6 months :)
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-09 08:56:37 -03:00 
						 
				 
			
				
					
						
							
							
								Christoph Witzko 
							
						 
					 
					
						
						
							
						
						90d8324971 
					 
					
						
						
							
							fix(gitlab): correctly prepend/append/keep releases notes ( #3765 )  
						
						... 
						
						
						
						Hi, I found a bug in the GitLab client that leads to not correctly
prepend/append/keep releases notes.
This will use the original `Description` instead of the pre-rendered
`DescriptionHTML`. Furthermore, as `include_html_description` is not
enabled, the `DescriptionHTML` field is always empty.
[GitLab
documentation](https://docs.gitlab.com/ee/api/releases/index.html#get-a-release-by-a-tag-name ) 
						
						
					 
					
						2023-02-07 11:19:19 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						15adfc8372 
					 
					
						
						
							
							test: fix exec tests on go 1.20 ( #3764 )  
						
						... 
						
						
						
						otherwise we might get warnings like
> warning: GOCOVERDIR not set, no coverage data emitted
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-07 10:39:48 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						81914757da 
					 
					
						
						
							
							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> 
						
						
					 
					
						2023-02-05 13:39:39 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						7c6bd86b28 
					 
					
						
						
							
							fix: do not do fancy 3rd party process logging ( #3747 )  
						
						... 
						
						
						
						do not write fields et al, let it just roll, otherwise its too noisy,
and we might expose things we are not supposed to.
closes  #3741 
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-02-01 23:25:36 -03:00 
						 
				 
			
				
					
						
							
							
								Kamesh Sampath 
							
						 
					 
					
						
						
							
						
						f22987a026 
					 
					
						
						
							
							fix: honouring ko bare option ( #3743 )  
						
						... 
						
						
						
						The commit will add the `bare` option to ko publisher options when
set/passed via config `.goreleaser.yaml`.
Currently, even the `bare: true` is set via config, the option was never
passed to `ko` PublisherOptions.
#3742 
---------
Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com > 
						
						
					 
					
						2023-02-01 19:46:38 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						4954815ae4 
					 
					
						
						
							
							fix: improve handling of --rm-dist deprecation  ( #3728 )  
						
						... 
						
						
						
						- improved how we handle `--rm-dist` deprecation so it looks more like
other deprecations
- improved deprecation error message a bit as well
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-01-29 00:24:11 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos Alexandro Becker 
							
						 
					 
					
						
						
							
						
						90a82157ca 
					 
					
						
						
							
							refactor: improve tmpls that eval to a bool ( #3726 )  
						
						... 
						
						
						
						- added a tmpl.Bool that checks if the result of a template is "true"
- added an ErrSkipper interface so Skip() methods can return errors as well
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com > 
						
						
					 
					
						2023-01-28 23:21:43 -03:00 
						 
				 
			
				
					
						
							
							
								Carlos A Becker 
							
						 
					 
					
						
						
							
						
						71f3952f18 
					 
					
						
						
							
							feat(deps): update go-github from v48 to v50  
						
						
						
						
					 
					
						2023-01-26 23:36:02 -03:00