Skip to content

Commit

Permalink
Find correct subdirectory in project repo when outside GOPATH (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Mar 23, 2020
1 parent daf9099 commit 7f84270
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,13 @@ func getProjectRepoInfoWithModules() (*ProjectRepoInfo, error) {

if isRoot {
rootDir = possibleRoot
subDir, err = filepath.Rel(rootDir, cwd)
if err != nil {
errs = append(errs, err.Error())
}
break
}

subDir, err = filepath.Rel(possibleRoot, cwd)
if err != nil {
errs = append(errs, err.Error())
}
possibleRoot = filepath.Dir(possibleRoot)
}

Expand Down

0 comments on commit 7f84270

Please sign in to comment.