compiler: make main function normally to compatible multiple main functions in testing mode
This commit is contained in:
@@ -226,9 +226,6 @@ func PathOf(pkg *types.Package) string {
|
||||
if pkg == nil {
|
||||
return ""
|
||||
}
|
||||
if pkg.Name() == "main" {
|
||||
return "main"
|
||||
}
|
||||
return strings.TrimPrefix(pkg.Path(), PatchPathPrefix)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user