MCPcopy Index your code
hub / github.com/dagger/dagger / getExplicitModuleSourceRef

Function getExplicitModuleSourceRef

cmd/dagger/module.go:1171–1185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1169}
1170
1171func getExplicitModuleSourceRef() (string, bool) {
1172 if moduleNoURL {
1173 return "", false
1174 }
1175 if moduleURL != "" {
1176 return moduleURL, true
1177 }
1178
1179 // it's unset or default value, use mod if present
1180 if v, ok := os.LookupEnv("DAGGER_MODULE"); ok {
1181 return v, true
1182 }
1183
1184 return "", false
1185}
1186
1187func getModuleSourceRefWithDefault() (string, error) {
1188 if v, ok := getExplicitModuleSourceRef(); ok {

Callers 4

withEngineFunction · 0.85
newShellCallHandlerFunction · 0.85
optionalModCmdWrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected