forked from mvdan/sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand: preserve glob prefixes such as ./
For example, "./foo/*" should match "./foo/bar", not "foo/bar". This can matter for some programs, such as "go build ./foo/*", since the leading dot directory indicates a path on disk as opposed to a URL to be fetched via the network. We didn't support this well because we were using filepath.Join everywhere, which cleans paths, thus removing dot directory components. To fix this, avoid joining paths whenever possible, and use custom logic when joining to avoid cleaning the result. Thanks to Andrey Nering and Marc Trudel for finding this bug in the go-task/task project. Fixes mvdan#336.
- Loading branch information
Showing
2 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters