livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.58k stars 180 forks source link

build: add support for asdf-vm #381

Closed wheinze closed 1 year ago

wheinze commented 1 year ago

Add support for asdf-vm which also makes switching Go versions in local development setup easy.

Especially useful when debugging issues related to Go version updates (see also #378)

wheinze commented 1 year ago

I successfully ran make ci.ubuntu in this context locally.

matthewmueller commented 1 year ago

Hey @wheinze, I hadn't heard of asdf before. I just tested it out locally.

My only gripe is that I wish it behaved more like direnv where when you left the directory it unloaded the shims. Otherwise it's fantastic, thanks for bringing this tool to my attention!

Just made some minor tweaks to this PR. This is good to merge. Thanks!

wheinze commented 1 year ago

Actually there's a pretty neat integration with direnv available: https://github.com/asdf-community/asdf-direnv ;)

Will provide a proper PR to make use of it in Bud.