Accept valid local main module paths
This commit is contained in:
@@ -126,7 +126,7 @@ func Derive(selection Selection, declaration []byte, version string) (Identity,
|
||||
return identity, fmt.Errorf("selected module declaration has no valid module directive")
|
||||
}
|
||||
identity.ModulePath = modulePath
|
||||
if err := module.CheckPath(modulePath); err != nil {
|
||||
if err := module.CheckImportPath(modulePath); err != nil {
|
||||
return identity, fmt.Errorf("invalid module path %q: %w", modulePath, err)
|
||||
}
|
||||
_, pathMajor, ok := module.SplitPathVersion(modulePath)
|
||||
|
||||
Reference in New Issue
Block a user