I am an absolute novice in Golang but I want to modify a Go build script to build a file locally only instead of publishing it to GitHub.
https://github.com/dahendel/docker-machine-driver-cloudstack/blob/master/.goreleaser.yml
How to proceed?
I am an absolute novice in Golang but I want to modify a Go build script to build a file locally only instead of publishing it to GitHub.
https://github.com/dahendel/docker-machine-driver-cloudstack/blob/master/.goreleaser.yml
How to proceed?
I have cloned your repo and try that in my local machine. Here is the steps :
Git clone
executing Dry run (testing everything before doing a release "for real" :
show there is no error
execute goreleaser for release
goreleaser will created dist folder inside project and this folder will consist of distribution packages (deb, rpm).
I have encounter some issues and here is what I do
create github or gitlab token ( https://github.com/settings/tokens) and put it as environment variable
resolve the issue.
as I see in your
goreleaser.yaml
you're using dep ensure, checking
$GOPATH
and make sure$GOPATH
pointing to right path of your Go project.dist folder has been created before, you can either manually delete the folder or add flags
--rm-dist
when executing goreleaser commandthis error occured as I was running on mac machine so there is no rpmbuild installed, installing rpm, rpmbuild solve the issue
Goreleaser seems to check file diff, so as because running hook (dep ensure) updating the Gopkg.lock and this changes/updates are not pushed to git. The solution is always pushing the changes to git.
reading from GoReleaser documentation which is "GoReleaser enforces semantic versioning and will error on non-compliant tags. Your tag should be a valid semantic version. If it is not, GoReleaser will error."
after pushing to git, make sure you have to update the tags, in this case I updates the tags to v1.0.6 (previously v1.0.5).
make sure release text is there.
Hope that helps