* [fix] Include git commit hash in tarballs
This change should allow builds made from a release tarball to
accurately display the git commit hash it was built from.
It does so by rendering the current short hash when packaging
the tarball. This workaround is necessary since the tarball
won't include the .git directory so we can't extract the
commit information from it.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Fix TestVersionPrinter
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Fix spacing
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [chore] Add better test coverage for helpers
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Disable one linux specific test on windows.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Only run helper tests on Linux. Currently there are no plans to
support those on Linux or even Darwin. If you have a need for that
feel free to put in the work to make that work.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Do not require a RELEASE_NOTES tag anymore. Instead attempt to
extract the changelog from the subject line or omit the commit
silently.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds yet another config handler for gopass. It is based on
the format used by git itself. This has the potential to address a lot
of long standing issues, but it also causes a lot of changes to how we
handle configuration, so bugs are inevitable.
Fixes#1567Fixes#1764Fixes#1819Fixes#1878Fixes#2387Fixes#2418
RELEASE_NOTES=[BREAKING] New config format based on git config.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
address comments
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Remove usage of io/ioutil: https://golang.org/doc/go1.16?s=03#ioutil
RELEASE_NOTES=[ENHANCEMENT] Use Go 1.16
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
We expect the requestor to manually curate the changelog so
we can't tag the release commit, yet.
RELEASE_NOTES=n/a
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds support for pre-release versions to
the release helper. The previous version can be passed
on the command line and release candidates will be detected
as well.
RELEASE_NOTES=n/a
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This PR adds a small release helper along with some documentation.
This should allow anyone with sufficient permissions to cut and push new
releases.
Fixes#1298
RELEASE_NOTES=n/a
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>