Carlos Alexandro Becker
f6b5e9abb8
fix: source archive not being added when no extra-files ( #3938 )
...
closes #3937
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-13 11:44:02 -03:00
Matthew Bamber
ac19f902b4
fix(nfpm): Add extension to produced artifacts ( #3940 )
...
Add extension to produced artifacts so that they can be filtered in
later steps
Fixes #3933
Co-authored-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-13 11:42:58 -03:00
Carlos Alexandro Becker
d5a413f9f4
feat: add context info to docker build errors ( #3920 )
...
its too hard to debug docker build issues... sometimes is just a typo in
the binary name, and you might end debugging it for way too long...
this prints the full path to the build context (so, locally at least,
you can cd into it) and also all the files available there when the
error seems to be one of the "file not found" kind.
Hopefully this helps fixing things easier :)
closes #3912
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-08 21:06:04 -03:00
Carlos A Becker
00d16bb51d
test: improve source tests
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-08 02:30:26 +00:00
Carlos Alexandro Becker
0eb3e7975c
fix: use git-archive under the hood ( #3904 )
...
This reverts back to using `git archive` for the source archives... but
will keep supporting extra files.
##### How it works:
Basically, we run `git archive` as before.
Then, we make a backup of the generated archive, and create a new one
copying by reading from the backup and writing into the new one.
Finally, we write the extra files to the new one as well.
This only happens if the configuration does have extra files, otherwise,
just the simple `git archive` will be run.
PS: we can't just append to the archive because weird tar format
paddings et al.
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-07 22:53:15 -03:00
Carlos Alexandro Becker
282c42164e
feat: allow to pr scoop manifests ( #3916 )
...
follow up of https://github.com/goreleaser/goreleaser/pull/3903
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-07 11:48:49 -03:00
Carlos Alexandro Becker
5805c5d608
feat: allow to pr krew plugin manifests ( #3915 )
...
following up on #3903
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-07 11:48:35 -03:00
Carlos Alexandro Becker
8b1c4ead60
feat: allow to PR homebrew taps ( #3903 )
...
closes #3485
also fixed a bug in file creation for github: it was always searching
for the file in the default branch
also, we don't need to create the file first, update does both create
and update.
TODO: implement the for krew, scoop, etc...
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-04-06 22:58:06 -03:00
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="e22e7a15ff
"><code>e22e7a1</code></a>
bump ggcr dep to <a
href="https://github.com/main "><code>@main</code></a> (<a
href="https://redirect.github.com/google/ko/issues/976 ">#976</a>)</li>
<li><a
href="8e075ae1f1
"><code>8e075ae</code></a>
fix file extension for cyclonedx (<a
href="https://redirect.github.com/google/ko/issues/974 ">#974</a>)</li>
<li><a
href="11670b7498
"><code>11670b7</code></a>
fix: handle docker's unknown/unknown platform in index manifests (<a
href="https://redirect.github.com/google/ko/issues/975 ">#975</a>)</li>
<li><a
href="7ce947817e
"><code>7ce9478</code></a>
fix cosign by adding --yes (<a
href="https://redirect.github.com/google/ko/issues/973 ">#973</a>)</li>
<li><a
href="9302da78dc
"><code>9302da7</code></a>
Bump k8s.io/apimachinery from 0.26.1 to 0.26.2 (<a
href="https://redirect.github.com/google/ko/issues/972 ">#972</a>)</li>
<li><a
href="a1588838ba
"><code>a158883</code></a>
Bump sigstore/cosign-installer from 2.8.1 to 3.0.1 (<a
href="https://redirect.github.com/google/ko/issues/971 ">#971</a>)</li>
<li><a
href="86b6c2854f
"><code>86b6c28</code></a>
Bump actions/checkout from 2 to 3 (<a
href="https://redirect.github.com/google/ko/issues/966 ">#966</a>)</li>
<li><a
href="0bd12fb106
"><code>0bd12fb</code></a>
Bump slsa-framework/slsa-github-generator from 1.2.1 to 1.5.0 (<a
href="https://redirect.github.com/google/ko/issues/967 ">#967</a>)</li>
<li><a
href="d5125daacd
"><code>d5125da</code></a>
Bump github.com/sigstore/cosign/v2 from 2.0.0-rc.2 to 2.0.0 (<a
href="https://redirect.github.com/google/ko/issues/965 ">#965</a>)</li>
<li><a
href="03f4aed682
"><code>03f4aed</code></a>
add ko community meeting details (<a
href="https://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 />
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/google/ko&package-manager=go_modules&previous-version=0.12.0&new-version=0.13.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>
---------
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
refs #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.
![Screenshot from 2023-02-03
00-11-18](https://user-images.githubusercontent.com/42128690/216525902-31e1f358-3c3d-4c1c-9d71-402170a8a0e6.png )
---------
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