()
| 1185 | } |
| 1186 | |
| 1187 | func 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. |
no test coverage detected