top | item 39460974

(no title)

GorsyGentle | 2 years 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.

discuss

order

randomdata|2 years ago

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

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

38|2 years ago

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.