Skip to content

Commit

Permalink
fix: resolve local module in app command
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Sep 4, 2021
1 parent 0fc9a8c commit cc50b11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/gomod/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func GetModulesFromPackages(moduleDir, packagePattern string) ([]Module, error)
return nil, err
}

err = ResolveLocalReplacements(moduleDir, modules)
if err != nil {
return nil, fmt.Errorf("failed to resolve local modules")
}

sortModules(modules)

return modules, nil
Expand Down

0 comments on commit cc50b11

Please sign in to comment.