Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: