Skip to content

Commit

Permalink
Use DefaultWorkspaceDir from container instead of hardcoding "/home/b…
Browse files Browse the repository at this point in the history
…uild"

Signed-off-by: dann frazier <[email protected]>
  • Loading branch information
dannf committed Jan 3, 2025
1 parent fe10319 commit ac4dd5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"github.com/joho/godotenv"
"gopkg.in/yaml.v3"

"chainguard.dev/melange/pkg/container"
"chainguard.dev/melange/pkg/util"
)

Expand Down Expand Up @@ -1378,8 +1379,8 @@ func ParseConfiguration(_ context.Context, configurationFilePath string, opts ..
}

const (
defaultEnvVarHOME = "/home/build"
defaultEnvVarGOPATH = "/home/build/.cache/go"
defaultEnvVarHOME = container.DefaultWorkspaceDir
defaultEnvVarGOPATH = container.DefaultWorkspaceDir + "/.cache/go"
defaultEnvVarGOMODCACHE = "/var/cache/melange/gomodcache"
)

Expand Down

0 comments on commit ac4dd5a

Please sign in to comment.