Open ejortega opened 3 months ago
I don't think we currently have any exception specific to Go, so $GOPATH
wouldn't be read even if it's set.
Brainstorming ways to make this work:
GOPATH
variable. And parse the value to add read-write permissions for any directories listed.GOPATH
variable and grant read-write access to the default location, $HOME/go
. (But that gets complicated if that path does not exist...)GOPATH
to point to it.go
from sandboxing... After all, it is designed to mitigate supply chain attacksAll of these options are a bit messy... 1 and 4 are my current favorites, but I'm going to think a bit more on this...
Overview
Attempting to a create a lockfile from a
go.mod
manifest fails with errormissing $GOPATH: HOME is not set
.How To Reproduce
Steps to reproduce this behavior:
go.mod
fileCaused by: package manager quit unexpectedly (code: Some(1)):
❗ Error: Could not parse dependency file "go.mod" as "go" type
Caused by: Dependency file parsing failed