I'm going to answer my own question as I've managed to figure it out. Set the following environment variable: GO111MODULE=off
When I previously looked at the environment variables using go env the GO111MODULE="", which I thought was off. But if this environment variable is not set then it is assumed to be on. Also the naming of the environment variable should be changed, as it still has the version number of when Modules were first introduced, 1.11, this should be changed to GOMODULE. On Thursday, December 1, 2022 at 5:12:28 PM UTC Jason Bramsden wrote: > BLUF: Is there any way to use the latest version of Go without Modules? > Some flag or environment setting where I can disable it? > > I've been developing on Go since 2011, and I find Modules so frustrating! > Life was so much easier without Modules, I could download packages from a > git repo using go get, and they would be accessible in the go/src > directory. I could then easily run the examples code and make changes all > in a nice directory structure. I don't care about what version the code is > at, which makes Modules pointless for the way that I develop. > > With Modules, if I'm downloading a fork of a git repo, then it is so much > more time-consuming, especially if the 3rd party fork code has issues. > > I could go back to an earlier version of the Go or I could switch to > another compiler like TinyGo. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0fef431d-6bd8-4dea-b48c-3d7d458e9355n%40googlegroups.com.