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

Function getModuleSourceRefWithDefault

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

Source from the content-addressed store, hash-verified

1185}
1186
1187func getModuleSourceRefWithDefault() (string, error) {
1188 if v, ok := getExplicitModuleSourceRef(); ok {
1189 return v, nil
1190 }
1191 if moduleNoURL {
1192 return "", fmt.Errorf("cannot use default module source with --no-mod")
1193 }
1194 return moduleURLDefault, nil
1195}
1196
1197// modifyLocalModule is a helper that loads a local module source, applies a
1198// transformation, and exports the generated context directory back to disk.

Callers 4

module.goFile · 0.85
modifyLocalModuleFunction · 0.85
optionalModCmdWrapperFunction · 0.85
config.goFile · 0.85

Calls 1

Tested by

no test coverage detected