1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

1562 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
22f734e41f
Merge pull request from GHSA-f6mm-5fc7-3g3c
fixes GHSA-f6mm-5fc7-3g3c

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-15 10:18:29 -03:00
Carlos Alexandro Becker
9cf3bbbc5c
fix(build): do not print 'go: downloading' bits of go build output (#4869)
this prevents printing `go: downloading` on go builds in case the mods
weren't previously downloaded...
2024-05-15 10:13:10 -03:00
Carlos Alexandro Becker
d4e83b0766
chore: fmt 2024-05-14 22:41:49 -03:00
Oleksandr Redko
6505654c86
fix: fix nolintlint issues (#4854)
The PR enables
[`nolintlint`](https://golangci-lint.run/usage/linters/#nolintlint)
linter and fixes up appeared issues.

Changes:

- Enable `nolintlint` in `.golangci.yml` config.
- Remove unused `//nolint:` comments.
- Fix `nolint` comment format by removing spaces (`// nolint: dupl` ->
`//nolint:dupl`)

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-12 14:11:11 -03:00
Oleksandr Redko
c148106c56
docs: update old Go website links (#4855)
The PR updates the links in the docs, replacing the old `golang.org`
with the new `go.dev`.
2024-05-12 13:22:56 -03:00
Oleksandr Redko
00a376cc64
refactor: remove unneeded in Go 1.22 loop var copy (#4856)
The PR cleans up unnecessary loop variable copying and enables the
[`copyloopvar`](https://golangci-lint.run/usage/linters/#copyloopvar)
linter for detecting this redundant variable copying.

#### Additional notes

After the project upgraded to Go version 1.22 in #4779, copying
variables inside a `for` loop became unnecessary. See this [blog
post](https://go.dev/blog/loopvar-preview) for a detailed explanation.

The `copyloopvar` linter is only available from `golangci-lint` v1.57
onwards, so we also need to update this tool.
2024-05-12 13:21:13 -03:00
Oleksandr Redko
c5204dfb64
fix: close HTTP resp body to prevent resource leak (#4857)
This PR fixes possible resource leaks by adding a statement that closes
a response body.

From the [documentation](https://pkg.go.dev/net/http):
> The caller must close the response body when finished with it

Also, see this
[article](https://golang50shad.es/index.html#close_http_resp_body) for a
deep dive into the problem.
2024-05-12 13:17:31 -03:00
Carlos Alexandro Becker
ba7e915cd8
docs: announce v1.26 (#4851)
planning the releaser for saturday!

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-11 14:21:51 -03:00
Carlos Alexandro Becker
0481e63fb3
docs: remove mentions to --skip-something flags 2024-05-09 23:18:53 -03:00
Carlos Alexandro Becker
12e8c22e12
test: blob defaults when no content disposition
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-09 22:15:23 -03:00
Maxime VISONNEAU
3c0c7148fd
blob: permit skipping the configuration of the Content-Disposition header (#4832)
This change would allow users to disable the `Content-Disposition`
header that is set for blob storage operations. The application will
continue to set a default value for `Content-Disposition` of
`attachment; filename={{.Filename}}` if no value was provided by the
user. However, with this change, users can now specifically disable this
header by setting the value to "-" in the configuration.

We feel this would be a nice solution for this issue:
https://github.com/Homebrew/brew/issues/15604
2024-05-09 22:13:46 -03:00
Shun Sakai
5d98c69f0f
feat(checksum): supports BLAKE2 and SHA-3 (#4850)
If applied, these commits will allow users to use BLAKE2 (BLAKE2b-512
and BLAKE2s-256) and SHA-3 (SHA3-{224,256,384,512}) as checksum
algorithms.

This is because I think it would be useful if these algorithms could be
used as an alternative to SHA-1 and SHA-2. These algorithms are
standardized as [RFC
7693](https://datatracker.ietf.org/doc/html/rfc7693) (BLAKE2) and [FIPS
PUB
202](https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions)
(SHA-3).

- <https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE2>
- <https://en.wikipedia.org/wiki/SHA-3>
2024-05-09 21:45:28 -03:00
Carlos Alexandro Becker
21f8ab78d5
chore: warnf -> warn 2024-05-08 15:34:46 -03:00
Carlos Alexandro Becker
172d6d4b99
Revert "fix: temp disable snapcraft" (#4830)
Reverts goreleaser/goreleaser#4826

for when there's a new snap release!
2024-05-06 00:20:39 -03:00
Carlos Alexandro Becker
14ab459300
fix(brew): linux brew with extra end
refs #4822

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-05 23:04:22 -03:00
Carlos Alexandro Becker
fbddb7081d
fix: temp disable snapcraft (#4826)
refs #4816

temp disable it from our release, and disable the broken tests
2024-05-03 09:21:52 -03:00
Carlos Alexandro Becker
d9adeb3585
test(brew): update goldenfiles
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-02 20:43:23 -03:00
kvendingoldo
b05a62fddc
feat: migrate to new homebrew constuctions (on_arm, on_intel) (#4822)
<!--

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... -->

...

<!-- Why is this change being made? -->
Brew linter says that old constructions can't be used in case of
submitting to brew-core

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

...
2024-05-02 20:43:03 -03:00
Carlos Alexandro Becker
2f876631b3
fix(nix): update valid licenses
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-05-02 20:39:26 -03:00
Stepan Rabotkin
7982a33a06
fix: telegram default message (#4821)
Hi, there is another fix of default message. I tried this message, now
everything works
2024-05-02 20:37:15 -03:00
Carlos Alexandro Becker
bee8665d9e
fix(brew): cpu conditionals (#4814)
closes #4813

---------

Co-authored-by: William Walker <w_walker@icloud.com>
2024-04-28 20:36:28 -03:00
Carlos Alexandro Becker
bf31227b4e
fix(nfpm): termux platform (#4812)
closes #4810 
closes  #4809

---------

Co-authored-by: rsteube <rsteube@users.noreply.github.com>
2024-04-28 20:20:53 -03:00
Carlos Alexandro Becker
0f5bf60239
chore: delete unused test file
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-24 16:16:52 -03:00
Carlos Alexandro Becker
39bf6668bc
feat(changelog): custom commit format (#4802)
This allows to use templates for commit messages in the changelog when
using `github`, `gitea`, or `gitlab` as the changelog implementation.

closes #4800

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-24 09:08:20 -03:00
Matthias Baur
2c93bd7c7f
feat(gitlab): Allow PRs to be created (#4793)
**Depends on #4792**

This adds support for opening pull requests on brew, krew, nix, scoop
and winget changes with Gitlab.

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-23 22:49:18 -03:00
Carlos Alexandro Becker
ddb60f417e
refactor: improve switch 2024-04-23 09:11:49 -03:00
Carlos Alexandro Becker
bfb2217f02
test: fix gitea changeloger tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-23 09:08:54 -03:00
Carlos Alexandro Becker
673555519a
refactor: improve switch
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-23 09:08:46 -03:00
Matthias Baur
fd40f5d772
fix(gitlab): Use start_branch for file creation if branch doesn't exist already (#4792)
Creating files on a new branch is only possible with the API if
`start_branch`
is given otherwise the API returns:

> You can only create or edit files when you are on a branch

Fixes https://github.com/goreleaser/goreleaser/issues/4543

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-23 09:01:23 -03:00
Carlos Alexandro Becker
7552d0b4e0
fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:44:28 -03:00
Carlos Alexandro Becker
2dcfc98a09
test: update gitea tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:40:04 -03:00
Carlos Alexandro Becker
b1723afff2
fix(gitea): changelog output
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:39:52 -03:00
Bo-Yi Wu
c8488dc825
feat(gitea): implement Changelog function (#4794)
- Add `strings` package import to `gitea.go`
- Implement `Changelog` function in `gitea.go`
- Update `useGitea` constant in `changelog.go`
- Add test for `useGitea` in `changelog_test.go`
- Update `changelog.md` with information about `gitea` customization

ref:

* Server API: https://github.com/go-gitea/gitea/pull/30349
* SDK: https://gitea.com/gitea/go-sdk/pulls/659

---------

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:26:13 -03:00
Carlos Alexandro Becker
b45c3b1720
fix(bluesky): change default env, fix user agent, update tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:25:00 -03:00
Josh Ghiloni
de72cab5d9
feat(announce): add BlueSky support (#4779)
<!--

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... -->

If applied, this commit will allow users to create BlueSky posts
(skeets) about their Goreleaser-built projects

<!-- Why is this change being made? -->

Because I wanted to post to BlueSky when projects I work on relating to
BlueSky are built!

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

Example post made during unit testing (requires an account to see):
https://bsky.app/profile/jaygles.bsky.social/post/3kpv573c2pc2k

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-22 23:15:26 -03:00
Carlos Alexandro Becker
3cd2e07c68
feat: notarize macos binaries (#4774)
this includes anchore/quill as a pipe to sign and notarize macos
binaries

TODO:

- [x] find a way to test this
- [x] docs
- [x] maybe get someone from anchore to take a look?

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-19 22:27:50 -03:00
Carlos Alexandro Becker
262c8dcbfe
chore(deps): update env from v9 to v11 (#4789)
updated env to latest

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-16 22:51:47 -03:00
Carlos Alexandro Becker
1ed1a62b90
fix: winget paths on windows (#4786)
closes  #4785
2024-04-16 20:57:22 -03:00
Carlos Alexandro Becker
5d37c9a5a0
feat: always log build output (#4787)
if the output is not empty, log it with info.

this prevents potentially hiding warnings et al.

on successful builds usually the output is empty anyway.

closes #4782

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-04-16 20:57:01 -03:00
Stepan Rabotkin
d5fc94a81d
refactor: optimize strings replacers (#4788)
Reuse strings replace instead of recreation
2024-04-16 20:56:45 -03:00
Stepan Rabotkin
56e0f79473
fix(telegram): mdv2escape ProjectName by default (#4784)
This pull request fix case when ProjectName contains any not escaped
symbols
2024-04-15 07:57:45 -03:00
Carlos Alexandro Becker
60a1cccf57
feat: isEnvSet tmpl function (#4775)
useful for conditionally enable/disable things based on whether an env
var is set or not
2024-04-12 11:09:18 -03:00
Carlos Tadeu Panato Junior
780a3a40d9
fix: update SBOM generation to add .json as file type (#4781)
- add the file type in the end of the sbom generated file 
- fix wrong value attribution in the doc example

---------

Signed-off-by: cpanato <ctadeu@gmail.com>
2024-04-12 11:04:55 -03:00
Carlos Alexandro Becker
dabe1f31bf
test(ko): make test more stable 2024-04-08 10:11:34 -03:00
lvyaoting
eba43c289e
chore: fix some comments (#4769)
fix some comments

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
2024-04-08 10:08:09 -03:00
Oleksandr Redko
0a38d90f66
fix: typo in User-Agent header value (#4765)
Corrects typo in the value of the `UserAgentHeaderValue` constant.
2024-04-07 19:46:14 -03:00
Carlos Alexandro Becker
053eccdba0
fix(release): only change release draft status on new releases (#4744)
If we're editing an existing release, do not set it to draft.

Closes #4742
Refs #4626
2024-04-03 13:56:22 -03:00
Carlos Alexandro Becker
22b7daadb4
fix(release): publish tag with skip_upload (#4745)
Closes #4743
Refs #4626
2024-04-03 13:55:54 -03:00
Carlos Alexandro Becker
0ff94f13e4
fix: properly skip docker builds of skipped builds (#4747)
refs https://github.com/orgs/goreleaser/discussions/4469 closes
https://github.com/goreleaser/goreleaser/issues/4746

Also made the error better, and added more details to the docs.
2024-04-03 13:52:07 -03:00
Carlos Alexandro Becker
19160164cf
chore(deps): update go-github 2024-04-02 08:22:48 -03:00