Closed macintacos closed 3 years ago
@macintacos hmm I believe you're right.
in https://github.com/Homebrew/homebrew-core/blob/master/Formula/bit-git.rb
system "go", "build", *std_go_args
should be something like
system "go", "build", *std_go_args -ldflags "-X main.version=0.9.10"
go build -ldflags "-X main.version=EXAMPLE.VERSION" main.go
./main --version
bit version EXAMPLE.VERSION
git version 2.24.3 (Apple Git-128)
@crunchtime-ali do you know? 🙏 I'm a ruby noob
@crunchtime-ali do you know? 🙏 I'm a ruby noob
I will have a look at it tomorrow. I am also quite inexperienced with Ruby. I would prefer rewriting Homebrew in Golang or Rust but psst... don't tell anyone :)
For the time being, just to clarify - I am running the latest, correct? It's just an issue with how the version number is calculated when pushing a new version to Homebrew or what have you?
@macintacos yep you're good. I'm confident based on this section: https://homebrew.bintray.com/bottles/bit-git-0.9.10.catalina.bottle.tar.gz
@crunchtime-ali did you around to looking at this. I'm pretty confident it's a one line fix similar to this go build -ldflags "-X main.version=EXAMPLE.VERSION" main.go
@crunchtime-ali did you around to looking at this. I'm pretty confident it's a one line fix similar to this
go build -ldflags "-X main.version=EXAMPLE.VERSION" main.go
Sorry, I didn't. I am a little swamped by working currently. Specifying the version manually will likely be the fix. I will get around to do it no later than Saturday and will also take a look at the other issues regarding the brew
formula.
@chriswalz @macintacos Sorry, it took a bit longer than expected. I just submitted a PR here https://github.com/Homebrew/homebrew-core/pull/64390
Great, thank you!
Describe the bug I reinstalled the
bit-git
homebrew formula twice now, and am still getting the same results:I do see that there's a comment in
main.go
saying that "v0.8.0" should be overwritten at compile time - is this just an issue with the homebrew installation then? I just want to make sure I have the most recent version.Expected behavior
bit --version
would output the correct, current version (0.9.10 at time of writing).Desktop (please complete the following information):