1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-06-15 00:15:11 +02:00
Commit Graph

30 Commits

Author SHA1 Message Date
f10873d919 Revert "feat: allow automatic snapshot on dirty state (#1958)" (#1962)
This reverts commit d8a0f253d1.
2020-12-22 11:04:51 -03:00
d8a0f253d1 feat: allow automatic snapshot on dirty state (#1958)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-22 10:41:08 -03:00
92f52ac406 refactor(test): use testing.TB Cleanup and Tempdir (#1945)
* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* fix: filepath

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-12 13:27:35 -03:00
f417d7783d feat: add support for git branch in templates (#1906)
Add a `.Branch` field to the text templates populated by the current git
branch.

Signed-off-by: Ben Kochie <superq@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-18 18:50:31 +00:00
979f8632b7 refactor: use require on all tests (#1839)
* refactor: use require on all tests

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

* refactor: use require on all tests

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-06 12:48:04 +00:00
65ffbf1921 refactor: replace pkg/errors.Wrap with fmt.Errorf (#1812)
* refactor: remove pkg/errors

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

* refactor: remove pkg/errors

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-09-21 17:47:51 +00:00
01942ae60d refactor: use git tag --points-at (#1796)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-09-08 10:11:59 -03:00
0d4f605388 feat: deterministic / reproducible build support (#1641)
* Make checksum ordering consistent

* Use consistent time for build date

* Add commit date to templates

* Add config option for build mod timestamp

* Make goreleaser builds reproducible

* Fix error in wording

* Update www/docs/customization/build.md
2020-07-06 17:09:22 -03:00
69c8a502db chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0 (#1563)
* chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-26 00:48:10 -03:00
ca3a63a537 feat: use CI environment variables to figure out tag (#1327)
* fix(git): Use CI envronment variables to figure out tag

This patch detects CI environments and uses the available tag information when
collecting the git tag.

This resolves issues where one commit has multiple tags.

Closes #1163
Closes #1311

* Update www/content/release.md

Co-Authored-By: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update www/content/release.md

Co-Authored-By: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update www/content/build.md

Co-Authored-By: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update www/content/release.md

Co-Authored-By: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* feat(doc): Document git tag override in environment

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-01-31 15:38:56 -03:00
21df6b816f fix: use long git arg for quiet (#1325) 2020-01-31 00:20:36 -03:00
449ed95bbe Revert "fix: getTag return incorrect tag, if we have more than 1 tag for 1 commit (#1164)"
This reverts commit 2403a40979.
2019-10-21 09:09:11 -03:00
4e71977e34 Revert "feat: git diff when dirty (#1178)"
This reverts commit 39d07c375d.
2019-10-20 11:10:31 -03:00
2403a40979 fix: getTag return incorrect tag, if we have more than 1 tag for 1 commit (#1164)
* fix strategy of getting latest tag

* add git -c "versionsort.suffix=-"

* fix test

* fix tests

* add more details about change
2019-10-07 13:58:19 -03:00
39d07c375d feat: git diff when dirty (#1178)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 17:56:53 -03:00
1a971c0d9a test: fixed git dirty test 2019-04-14 14:41:24 -03:00
a62314d9bb fix: small error msg improvement
refs #1005
2019-04-14 14:16:53 -03:00
adcc4524da fix: suppress diffs on git show (#955) 2019-02-06 17:51:09 -02:00
742c8d03aa clean: removed uneeded param 2019-01-19 18:14:32 -02:00
59f10ad083 clean: removed deprecated git.short_hash option 2019-01-19 18:14:32 -02:00
ed2ca57bd5 clean: unused err 2019-01-19 17:33:33 -02:00
a31abde2e9 clean: remove uneeded extra tag check 2019-01-19 17:33:33 -02:00
07d9855890 fix: tests 2018-12-13 12:11:12 -02:00
a69ef61d60 fix: snapshot version handling 2018-12-13 12:11:12 -02:00
18efb4a5c2 fix: change defaults order 2018-11-25 18:25:38 -02:00
6c349c1759 fix: linter fixes 2018-11-08 09:40:23 -02:00
5c63f88290 test: add more tests 2018-10-04 23:23:31 -03:00
748d97ef22 feat: git remote url in the template engine 2018-10-04 23:23:31 -03:00
af99acf244 feat: add new template fields 2018-10-04 09:23:06 -03:00
39de856eb4 refactor: better package organization 2018-09-12 14:18:01 -03:00