Skip to content

Commit

Permalink
graceful exit for non conforming repos
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb committed Dec 21, 2023
1 parent 0328379 commit 679a2e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions infra/module-swapper/cmd/swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ func writeModuleRefs(f []byte, p string, moduleRefs map[string]string) ([]byte,
func SwapModules(rootPath, moduleRegistrySuffix, moduleRegistryPrefix, subModulesDir, examplesDir string, restore bool) {
rootPath = filepath.Clean(rootPath)
moduleName, foundRegistryPrefix, err := getModuleNameRegistry(rootPath)
if err != nil {
log.Fatal(err)
if err != nil && moduleRegistryPrefix == "" {
log.Printf("failed to get module name and registry: %v", err)
return
}

if moduleRegistryPrefix != "" {
Expand Down

0 comments on commit 679a2e0

Please sign in to comment.