Skip to content

Commit

Permalink
Fix vendor basepath on macOS & Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Mar 14, 2020
1 parent a58ff73 commit 23a0a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paths_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (

// appendPaths appends the app-name and further variadic parts to a path
func (s *Scope) appendPaths(path string, parts ...string) string {
paths := []string{path, s.App}
paths := []string{path, s.Vendor, s.App}
paths = append(paths, parts...)
return filepath.Join(paths...)
}
Expand Down
2 changes: 1 addition & 1 deletion paths_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *Scope) dataDir() (string, error) {
return "", ErrRetrievingPath
}

return filepath.Join(path, s.App), nil
return filepath.Join(path, s.Vendor, s.App), nil
}

// dataDirs returns a priority-sorted slice of data dirs.
Expand Down

0 comments on commit 23a0a23

Please sign in to comment.