()
| 1169 | } |
| 1170 | |
| 1171 | func 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 | |
| 1187 | func getModuleSourceRefWithDefault() (string, error) { |
| 1188 | if v, ok := getExplicitModuleSourceRef(); ok { |
no outgoing calls
no test coverage detected