semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
25 stars 13 forks source link

Adjust correct version variable with goreleaser #148

Closed milica-nerlovic closed 5 years ago

milica-nerlovic commented 5 years ago

The previous attempt doesn't work, example with edge release: Screenshot from 2019-04-25 11-58-00

My guess is bc we are trying to change the VERSION in the main package, as we do in agent. However, here the VERION lives in the cmd package, in a separate file: https://github.com/semaphoreci/cli/blob/master/cmd/version.go#L9

Not sure if goreleaser can access other packages than main, though. :thinking: