Skip to content

Commit

Permalink
Merge pull request #11260 from nalind/remote-build-path
Browse files Browse the repository at this point in the history
pkg/bindings/images.nTar(): slashify hdr.Name values
  • Loading branch information
openshift-merge-robot authored Aug 19, 2021
2 parents 7a0d948 + aeffdb0 commit 8b84874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bindings/images/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ func nTar(excludes []string, sources ...string) (io.ReadCloser, error) {
return nil // skip root dir
}

name := strings.TrimPrefix(path, s+string(filepath.Separator))
name := filepath.ToSlash(strings.TrimPrefix(path, s+string(filepath.Separator)))

excluded, err := pm.Matches(filepath.ToSlash(name)) // nolint:staticcheck
excluded, err := pm.Matches(name) // nolint:staticcheck
if err != nil {
return errors.Wrapf(err, "error checking if %q is excluded", name)
}
Expand Down

0 comments on commit 8b84874

Please sign in to comment.