garybernhardt/selecta

Versions seem wrong.

Closed this issue · 4 comments

Selecta says its version is 0.0.2

> ag VERSION.\*=
> ./selecta  --version

Homebrew says it is 0.0.3

> brew info selecta | ag \\d\\.\\d\\.\\d

There is a tag for 0.0.3 with 42 commits on HEAD since then

> git tag
> git log v0.0.3^..HEAD --format='%C(yellow)%h%Cred%d%Creset %s '

screenshot 2015-01-05 10 21 09

Yep, that's wrong. I've screwed this up with other projects in the past as well. I always forget to increment the number in two places. Do you know of any form of automation that makes this problem go away?

I don't, I've never put anything on homebrew.

Damn. I've made this mistake in non-homebrew projects too. It's just the mismatch between a VERSION constant in the code and the name of the tag. Maybe I'll make a little release script in bin/ that seds the code, commits, and creates a tag.

I created that script and tagged 0.0.4 with it. b2b8d87 I'm going to fix another bug and then push 0.0.5 to Homebrew.