-
Notifications
You must be signed in to change notification settings - Fork 54
build: replace deploy.sh
with goreleaser
#65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
agilgur5
wants to merge
7
commits into
docopt:master
Choose a base branch
from
agilgur5:build-with-goreleaser
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
94799c5
build: replace `deploy.sh` with `goreleaser`
agilgur5 c85881d
Replace govvv link comment to .goreleaser.yaml
548ba40
docs: no need to run `go mod tidy` when building from source
agilgur5 a78ee48
ci: upgrade to Go 1.17 and use `cache` now that `go.sum` exists
agilgur5 ae7431b
change: default target `make` just does `go build`, add `make snapshot`
agilgur5 6d289d3
docs(dev): update `binaries` and `release` w/ `goreleaser` changes
agilgur5 014280c
changelog: get release notes from `CHANGELOG.md`
agilgur5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
docopts | ||
*.swp | ||
env | ||
build/docopts_* | ||
build/docopts.go | ||
dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.17.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# https://goreleaser.com | ||
|
||
# https://goreleaser.com/customization/hooks/ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
# https://goreleaser.com/customization/build/ | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
targets: | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
- freebsd_amd64 | ||
- linux_386 | ||
- linux_amd64 | ||
- linux_arm | ||
- windows_amd64 | ||
# https://goreleaser.com/customization/templates/ | ||
# defaults: https://goreleaser.com/cookbooks/using-main.version | ||
ldflags: | ||
- -X "main.Version={{.Version}}" | ||
- -X "main.BuildDate={{.Date}}" | ||
- -X "main.GitCommit={{.ShortCommit}}" | ||
- -X "main.GoBuildVersion={{.Env.GOVERSION}}" # https://goreleaser.com/customization/build/#passing-environment-variables-to-ldflags | ||
archives: | ||
- format: binary # https://goreleaser.com/customization/archive/#disable-archiving | ||
checksum: | ||
name_template: 'sha256sum.txt' | ||
# https://goreleaser.com/customization/snapshots/ | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
# https://goreleaser.com/customization/release/ | ||
release: | ||
draft: true | ||
github: | ||
owner: docopt | ||
name: docopts | ||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Changelog | ||
|
||
## bug fix v0.6.4-with-no-mangle-double-dash | ||
|
||
Tag: `v0.6.4-with-no-mangle-double-dash` | ||
|
||
This is a bug fix release. | ||
|
||
features changes: | ||
- fix error refusing mangling double dash in global mode [#52] | ||
- still refuse to mangle single dash `[-]` in global mode (not compatible with v0.6.1) | ||
- now can mangle single-dash and double-dash in `-G` mode | ||
- fix output bash empty array #53 | ||
|
||
internal changes: | ||
- use Go 1.17.1 for compiling | ||
- `language_agnostic_tester.py` re-write for python3 | ||
- sort argument key in `Print_bash_args()` `Print_bash_global()` | ||
- sort input keys in `docopts_test.go` | ||
- add PR #52 test to `testcases.docopt` | ||
- completed developer documentation | ||
- #52 ignore `[--]` double-dash option in `Print_bash_global()` | ||
- reformat of Go code with `gofmt`; indent change Space ==> Tab | ||
- add `tests/functional_tests_docopts.bats` | ||
|
||
## docopts binary transitional v0.6.3-rc2 | ||
|
||
Tag: `v0.6.3-rc2` | ||
|
||
This is a transitional release. | ||
|
||
It supports all the previous command line API plus some extra options. | ||
Fully compatible with previous 0.6.2 python code for Bash. | ||
|
||
See: https://github.com/docopt/docopts/tree/v0.6.1%2Bfix | ||
based on master branch | ||
|
||
features changes: | ||
- `docopts.sh` function `docopt_get_help_string()` now uses awk to extract only first `Usage:` | ||
|
||
internal changes: | ||
- use Go 1.14 for compiling | ||
- more pre-built binaries, removed darwin/386 | ||
- fixed #44 `get_docopts.sh` for macOS + functional tests | ||
- removed `bats` git submodule | ||
- use [bats-core 1.2-dev](https://github.com/bats-core/bats-core) as testing framework from travis | ||
- `deploy.sh` removed, now uses its [own repository](https://github.com/opensource-expert/deploy.sh) | ||
- updated Makefile to use `get_ldflags.sh` from `deploy.sh` | ||
- [travis hack](travis/get_bash5_macos.sh) to get faster build on macos with our embedded bash5 binary | ||
|
||
## docopts binary transitional v0.6.3-rc1 | ||
|
||
Tag: `v0.6.3-rc1` | ||
|
||
This is a transitional release. | ||
|
||
It supports all the previous API plus some extra command line options. | ||
Fully compatible with previous 0.6.2 Python code for Bash. | ||
|
||
See: https://github.com/docopt/docopts/tree/v0.6.1%2Bfix | ||
based on master branch | ||
|
||
changes: | ||
- more test for macOS | ||
- Bash 3.2 support is more documented and fixed | ||
- use `bats-core` as testing framework | ||
- updated README merged from old README.rst | ||
- now documentation introduce `docopts.sh` See [docs](https://github.com/docopt/docopts/tree/v0.6.3-rc1/docs/) | ||
- added `Makefile` | ||
- added `build_doc.sh` PoC markdown preprocessor | ||
|
||
all examples written for docopts: | ||
- shebang conversion `#!/bin/bash` ==> `#!/usr/bin/env bash` | ||
- legacy example completed | ||
- example from README extracted a file, and merged in README via `build_doc.sh` | ||
- `sshdiff` full example coded | ||
- added examples with `--auto -G` | ||
|
||
docopts.sh helper: | ||
- is more documented in the code | ||
- has documenation in [docs/README.md](https://github.com/docopt/docopts/tree/v0.6.3-rc1/docs/README.md) | ||
- now supports bash strict mode (`set -euo pipefail`) | ||
- now supports `--auto -G` to auto parse with global vars (doesn't use bash 4 associative array) | ||
`docopts` behavior sould be unchanged: | ||
- add mangled name collision detection | ||
|
||
## docopts for Bash first release in golang | ||
|
||
Tag: `v0.6.3-alpha1` | ||
|
||
This is a transitional release. | ||
|
||
It is a complete rewrite of the Python code in Go. | ||
It supports all of the previous API plus some extra command line options. | ||
|
||
Fully compatible with previous 0.6.2 python code for Bash. | ||
based on https://github.com/docopt/docopts/tree/packaging-debian | ||
|
||
## first release in Go | ||
|
||
Tag: `v0.6.2` | ||
|
||
This is a transitional release. | ||
|
||
Docopt for shell. | ||
It supports all of the previous API. | ||
|
||
Fully compatible with previous 0.6.1 Python code for Bash. | ||
See: https://github.com/docopt/docopts/tree/v0.6.1%2Bfix | ||
based on master branch | ||
|
||
changes: | ||
- now written in Go, no more Python dependency |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.