Skip to content

Commit

Permalink
fix:incorrect import path(#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantZheng committed Oct 16, 2020
1 parent 7208e1f commit 960a496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func getImportPath(name string, key string) (string, error) {
var importPath string
// Change: here should not use os.Getwd() as projectPath
// Desc:It can't pass go test, on windows, projectPath will be "c:/User/xxx/...", this will cause err certainly.
projectPath = ""
// projectPath = ""
if projectPath == "" {
importPath = path
} else {
Expand Down

0 comments on commit 960a496

Please sign in to comment.