laher / goxc

a build tool for Go, with a focus on cross-compiling, packaging and deployment
1.68k stars 79 forks source link

Custom build off of a non master branch #112

Open sjezewski opened 7 years ago

sjezewski commented 7 years ago

Hi there!

We had to cut a custom build off a branch. (The reason it can't be master was because we had to cherry pick commits for this custom feature set that were incompatible w master).

Using goxc to build worked in every way ... except that the tag it created was pointed at master, not the custom branch.

Is there a config option I need to set / is there a way for goxc to support this?

While it doesn't happen often, we'd really like the ability to be able to cut custom builds from any branch.

For now, I deleted the tag generated by goxc, and manually created a tag pointed at the right commit.

laher commented 7 years ago

Sorry for delayed response. The task for tagging is here. It doesn't specify any branch: https://github.com/laher/goxc/blob/master/tasks/tag.go#L47

Can you just run goxc from your branch? It should just work, no?