Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

support multi-path gopath #435

Merged
merged 3 commits into from
Jun 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix Separator error
  • Loading branch information
wencan committed Jun 1, 2020
commit 0ed410fbd242b9dafebff833856c02a0f117810a
2 changes: 1 addition & 1 deletion mockgen/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func parsePackageImport(srcDir string) (string, error) {
if goPaths == "" {
return "", fmt.Errorf("GOPATH is not set")
}
goPathList := strings.Split(goPaths, string(os.PathSeparator))
goPathList := strings.Split(goPaths, string(os.PathListSeparator))
for _, goPath := range goPathList {
sourceRoot := filepath.Join(goPath, "src") + string(os.PathSeparator)
if strings.HasPrefix(srcDir, sourceRoot) {
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy