Hacker News new | ask | show | jobs
by GorsyGentle 843 days ago
Except I cannot `go run ~/that/project/over/there` as the use of go modules means I have to change directory to be inside the package first. I'm not sure why that is exactly, but it's always been a nit I've found frustrating.
2 comments

Especially when you can `go run that/project/over/there@latest`

Although, with slight modification, you can `go run -C ~/that/project/over/there .`

thats mostly true. you need to at least be at the top level of the module to do go run. any higher and you get a missing go.mod error.