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

Make sure paths are absolute before matching files to wildcard sources#330

Merged
priyawadhwa merged 1 commit intoGoogleContainerTools:masterfrom
priyawadhwa:bug
Aug 31, 2018
Merged

Make sure paths are absolute before matching files to wildcard sources#330
priyawadhwa merged 1 commit intoGoogleContainerTools:masterfrom
priyawadhwa:bug

Conversation

@priyawadhwa
Copy link
Copy Markdown
Contributor

The bug in #329 occurred because of a bug in matchSources, where the
filepath wasn't absolute, so the source "/kaniko-bug/*" wasn't being
matched to the file "kaniko-bug/test-file"

To fix this, I added logic for making filepaths absolute and added to
the unit test for the function to test that it works.

The bug in GoogleContainerTools#329 occurred because of a bug in matchSources, where the
filepath wasn't absolute, so the source "/kaniko-bug/*" wasn't being
matched to the file "kaniko-bug/test-file"

To fix this, I added logic for making filepaths absolute and added to
the unit test for the function to test that it works.
@priyawadhwa priyawadhwa merged commit 2e10d27 into GoogleContainerTools:master Aug 31, 2018
@priyawadhwa priyawadhwa deleted the bug branch August 31, 2018 22:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants