Open vito opened 2 years ago
Ahh, I can see that being annoying. This happens when using the latest version of bud, so not one of the releases: https://github.com/livebud/bud/blob/f3872335de4f45ae51453ff5082e1ad16c38343a/internal/cli/bud/bud.go#L149-L168
Some context: I originally added this when testing Bass Loop before releasing v0.1.9 to test that Bud continued to work. The runtime had breaking changes so testing the latest CLI with Bud's runtime fixed within Bass Loop's go.mod to an earlier version was causing errors.
I'm not sure what the right solution is here. Originally it did nothing on latest: https://github.com/livebud/bud/blob/e4c96b51b08e979e7a7bdfa921c778633f5275e9/internal/cli/bud/bud.go#L150-L153
Maybe default do nothing, but support a --link
or --dev
flag?
Update: What seems best is if you could tweak the replace with an environment variable or flag instead of modifying go.mod each time go run
is called. There might be a way to do this.
I think this started happening with pretty recent changes - I'm using v0.1.9:
This has an absolute path on my dev machine so I have to avoid accidentally committing it.