FiloSottile / FiloSottile/homebrew-gomod
Updates don't seem to work
- Dominant language
- Shell
- Stars
- 68
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
So, I installed `github.com/ncruces/zenity` a couple of days ago like so:
```
$ brew install FiloSottile/gomod/brew-gomod
$ brew gomod github.com/ncruces/zenity/cmd/zenity
```
And it worked fine. I released a new version today, so it was time to try and upgrade, this is what I get:
```
$ brew gomod github.com/ncruces/zenity/cmd/zenity
Unlinking /Users/cruces/homebrew/Cellar/gomod-zenity/2021-05-06... 1 symlinks removed.
go: creating new go.mod: module gomod-zenity/2021-05-07
go: downloading github.com/ncruces/zenity v0.7.2
go get: added github.com/ncruces/zenity v0.7.2
Linking /Users/cruces/homebrew/Cellar/gomod-zenity/2021-05-06... 1 symlinks created.
```
Note how `brew link` links the old version again.
A clean uninstall then install works, but any idea how this might be fixed?
Contributor guide
Research direction
Start by reproducing the upgrade with the shown `brew gomod github.com/ncruces/zenity/cmd/zenity` commands and compare the generated `go.mod` module version with the Homebrew cellar and symlink paths in the output. Trace the `brew gomod` entry point through its unlink, install, and link steps; done means upgrading links the newly installed version instead of restoring the old one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, shell
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100