Skip to content

Commit

Permalink
test: fail on empty gomodcache
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Dec 1, 2024
1 parent 279f2bc commit fe9168f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-tools/mage/integtest_docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ func integTestDockerComposeEnvVars() (map[string]string, error) {
goModCache = os.Getenv("GOPATH") + "/pkg/mod"
}

if goModCache == "" {
_, file, no, _ := runtime.Caller(1)
return nil, fmt.Errorf("empty gomodcache: %s:%d", file, no)
}

return map[string]string{
"ES_BEATS": esBeatsDir,
"STACK_ENVIRONMENT": StackEnvironment,
Expand Down

0 comments on commit fe9168f

Please sign in to comment.