1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00
Commit Graph

654 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
5866b9cb63
refactor: use os and io packages intead of ioutil when possible (#2189) 2021-04-25 13:00:51 -03:00
Carlos Becker
95bef19280 fix: env: close file
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 14:41:36 +00:00
Carlos Alexandro Becker
66117f3126
fix: several fd leaks (on tests) (#2187) 2021-04-25 11:34:40 -03:00
Carlos Alexandro Becker
f72e6399da
fix: fd leak on gomod pipe (#2188)
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 00:08:58 -03:00
Carlos Becker
48e8d83dad test: make test git init compatible with older git versions
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 02:21:54 +00:00
Trenton Broughton
e7f1ec0ea6
Do not send an empty discussion category name (#2182)
If the discussion category name is not specified in the config file, do not send it in to the request

This is a quick fix, and possibly it would be better to make `DiscussionCategoryName` a pointer.
2021-04-21 16:09:27 -03:00
Carlos Alexandro Becker
7a7a6f61ba
feat: create discussions from releases (#2177)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-21 13:43:59 -03:00
Carlos Alexandro Becker
f61d8c820c
fix: improve output a bit (#2174)
* fix: improve output a bit

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: improve output a bit

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: revert unwanted changes

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: skip err

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* chore: build

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-19 09:31:57 -03:00
Carlos Alexandro Becker
a9efdcab4a
fix: handle build.main being a go file when using gomod.proxy (#2173)
* fix: handle build.main being a go file when using gomod.proxy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: guess pkg

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-19 11:54:55 +00:00
Tom Payne
e4e242f573
fix: ignore non-arm64/386 builds when building Scoop manifest (#2172) 2021-04-18 18:40:23 +00:00
Carlos Alexandro Becker
50117da6b5 fix: not using go mods on go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-03 16:48:11 -03:00
Carlos Alexandro Becker
f6b1d1563a
fix: checksum header (#2154)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-01 09:03:11 -03:00
Carlos Alexandro Becker
8306b946d3
feat: initial proxy build support (#2129)
* feat: allow to use ModulePath on templates

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: initial proxy build support

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: build

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: main check

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: make it more flexible

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: small improvements

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: copy go.sum

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: root mod proxy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: snapshots

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: proxy main pkg

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: environment variables

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: added some tests to go mod proxy feature

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: improve test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: linte

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: goreleaser.yml

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: simplify tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: test build

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: revert unwanted changes

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: allow to run when no mod.suym

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: example

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: not a go module on go 1.15

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: improve docs as per comments

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-30 21:06:25 -03:00
Carlos Alexandro Becker
90f2ba6925 fix: not a go module on go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-30 20:07:58 -03:00
Carlos Alexandro Becker
aae0d53ac6
fix: build windows/arm (#2144)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-28 12:18:40 -03:00
Carlos Alexandro Becker
be4049e6d8 fix: move shallow clone error to warning
refs #2141 #2134

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-24 23:17:40 -03:00
Carlos Alexandro Becker
d04a7dad19
feat: fail on shallow clone (#2135)
* feat: fail on shallow clone

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: typo

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-24 08:55:13 -03:00
Carlos Alexandro Becker
9c66827d94 fix: check main error message
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-23 15:52:11 -03:00
Carlos Alexandro Becker
64ca73637a fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-23 09:29:06 -03:00
Carlos Alexandro Becker
251e4486ed
fix: wrong docker manifest on latest (#2130)
* fix: wrong docker manifest on latest

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: do not fail on missing manifest

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: simplify code a bit

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: existing manifest

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 23:26:26 -03:00
Carlos Alexandro Becker
7378edc708
feat: allow to use ModulePath on templates (#2128)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 08:55:01 -03:00
Carlos Alexandro Becker
740ab6f2bd fix: remove replace
closes #2080

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 08:45:18 -03:00
Carlos Alexandro Becker
9f8750dcd2
fix: default gomips (#2124)
* fix: default gomips

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-20 15:17:19 -03:00
Carlos Alexandro Becker
12c7d38eb9
fix: properly translate mips arch (#2126)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-20 15:16:26 -03:00
Dinar Valeev
57a69dbe47
fix: docker manifest on draft release (#2119)
docker manifests exepcted to be pushed on draft.

- add test for such case

Signed-off-by: Dinar Valeev <dinar.valeev@absa.africa>
2021-03-19 13:24:50 +00:00
Kumbirai Tanekha
e0c3abae2e
feat: Add trimprefix function to template package (#2116)
This allows templates to trim prefixes. Particularly useful for removing the v prefix from versions
2021-03-17 14:19:32 -03:00
Peer Xu
c539ee0212
feat: support snapcraft layout (#2112)
* feat: add layout field to snapcraft pipe

* refactor: change bind-file to bind_file for snap description

* doc: update snapcraft layout document
2021-03-17 10:18:56 -03:00
Gastón Palomeque
2d3ec15bc6
fix: nfpm on windows (#2099) 2021-03-09 18:16:54 -03:00
Carlos Alexandro Becker
c9ffa78c25
feat: package name on nfpm file name template (#2097)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-09 10:57:43 +00:00
Carlos Alexandro Becker
5e23177a4c
fix(ci): go mod tidy (#2090)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-02 21:29:31 -03:00
Carlos Alexandro Becker
4f7968316f
feat(ci): run lint on actions (#2087)
* feat: lint on specific ci step

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: run on push

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: contributing

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: contributing

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: action

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:45:06 -03:00
Carlos Alexandro Becker
be93544e5c
feat: update fileglob and nfpm (#2085)
* feat: update fileglob

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: upgrade nfpm too

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:19:13 -03:00
Carlos Alexandro Becker
25affdd891
fix: log semver errors when snapshot (#2084)
* fix: log semver errors when snapshot

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: deprecate notice

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:18:57 -03:00
Carlos Alexandro Becker
5d7f36eadb
test: use main as git branch for tests (#2083)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:18:26 -03:00
Carlos Alexandro Becker
5a1564bcab fix: use deprecation warnings for go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-18 14:54:04 -03:00
Carlos Alexandro Becker
784560c06e
fix: try not to break if run on go1.15 (#2069)
* fix: try not to break if run on go1.15

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: go binary needs to be set

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* chore: gofumpt

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: move to log

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-18 17:29:20 +00:00
Carlos Alexandro Becker
43fcfafe7a
fix: brew: check cpu (#2062)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-17 08:14:50 +00:00
Carlos Alexandro Becker
6b26fe4106
feat: support go 1.16 and apple silicon (#1956)
* feat: support apple silicon

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* feat: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test case

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* Update .github/workflows/build.yml

Co-authored-by: Radek Simko <radek.simko@gmail.com>

* docs: go 1.16

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2021-02-16 22:51:11 +00:00
Deepak S
89c220c4c6
fix: makes username and password optional for http uploads (#2057)
* fix: makes username and password optional for http uploads

* update upload doc
2021-02-12 19:01:06 +00:00
Carlos Alexandro Becker
ae85009993 chore(deps): bump github.com/goreleaser/nfpm/v2 from 2.2.2 to 2.2.3
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-10 15:43:17 -03:00
Ani Channarasappa
a816d969c9
fix: update snapcraft command from 'push' to 'upload' (#2051)
as per deprecation message
2021-02-09 01:40:01 +00:00
Carlos Alexandro Becker
78b0097dc2
fix: brew default install when using templates in the binary name (#2030)
* fix: brew default install when using templates in the binary name

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: remove unused func

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: remove unused func

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-21 21:01:33 +00:00
dependabot[bot]
ba82f43c5f
chore(deps): bump github.com/golangci/golangci-lint from 1.34.1 to 1.35.2 (#2011)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.34.1 to 1.35.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.34.1...v1.35.2)

Signed-off-by: dependabot[bot] <support@github.com>

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-15 12:54:31 +00:00
Carlos Alexandro Becker
ef5be03d23
feat: compile to riscv64 (#2016)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-13 17:28:53 +00:00
Sylvia Moss
6d9abe6299
feat: add Os and Arch template options to the Binary name field (#1936)
* allow Os and Arch tmpl variables in binary name

* update documentation

* fix docs
2021-01-12 20:27:46 +00:00
Sune Keller
2213b073ac
feat(http): resolve custom header template expressions (#2005)
* feat(http): resolve custom header template expressions

Signed-off-by: Sune Keller <absukl@almbrand.dk>

* test: catch invalid templates in custom headers

Signed-off-by: Sune Keller <absukl@almbrand.dk>

* test: validate header template resolution

Signed-off-by: Sune Keller <absukl@almbrand.dk>
2021-01-08 11:35:12 +00:00
Carlos Alexandro Becker
e8ea231122
feat: allow to use nfpm packages in the docker pipe (#2003)
* feat: copy nfpms to docker image too

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: wip

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: logs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fixes

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: improving

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: deprecations and docker improvements

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: revert .goreleaser.yml changes

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: fix syntax

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: fixed deprecation warnings

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: coverage

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: add one more test case

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-07 19:21:12 +00:00
Sune Keller
f934314be3
feat(http): support custom headers in http upload (#2002)
Signed-off-by: Sune Keller <absukl@almbrand.dk>
2021-01-07 17:15:53 +00:00
Carlos Alexandro Becker
2edebf0029
feat: add arm64 to the default goarch list (#1999)
* feat: add arm64 to the default goarch list

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-07 12:25:52 +00:00
Carlos Alexandro Becker
873f35a2c2
refactor: use t instead of tt (#2000)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-07 09:15:32 -03:00