You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to a create a lockfile from a go.mod manifest fails with error missing $GOPATH: HOME is not set.
How To Reproduce
Steps to reproduce this behavior:
Parse a go.mod file
❯ phylum parse -t go go.mod
Generating lockfile for manifest "go.mod" using Go…
❗ Error: Lockfile generation failed! For details, see: https://docs.phylum.io/cli/lockfile_generation
Caused by:
package manager quit unexpectedly (code: Some(1)):
go: github.com/go-audio/audio@v1.0.0: verifying go.mod: github.com/go-audio/audio@v1.0.0/go.mod: initializing sumdb.Client: could not locate sumdb file: missing $GOPATH: HOME is not set
❗ Error: Could not parse dependency file "go.mod" as "go"type
Caused by:
Dependency file parsing failed
Checking go env the $GOPATH is set.
After disabling the lockfile generation sandbox, the lockfile generation works as expected.
Allow access to the GOPATH variable. And parse the value to add read-write permissions for any directories listed.
Disallow access to the GOPATH variable and grant read-write access to the default location, $HOME/go. (But that gets complicated if that path does not exist...)
Create a temporary directory with read-write access and set GOPATH to point to it.
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
filego env
the$GOPATH
is set.The text was updated successfully, but these errors were encountered: