Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where a failing glob would cause later globs to be ignored #620

Merged
merged 2 commits into from
Jan 15, 2018

Conversation

lox
Copy link
Contributor

@lox lox commented Jan 15, 2018

This also brings in a revamped test for the uploader that I've been working on for windows compatibility.

Closes #619.

This also brings in a revamped test for the uploader.

Closes #619.
@lox lox requested a review from keithpitt January 15, 2018 01:20
@@ -83,7 +83,8 @@ func (a *ArtifactUploader) Collect() (artifacts []*api.Artifact, err error) {
// Resolve the globs (with * and ** in them)
files, err := zglob.Glob(globPath)
if err == os.ErrNotExist {
return nil, nil
logger.Info("No files matched glob: %s", globPath)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically - zglob only returns os.ErrNotExist when you pass in a non-globbed path. So the message would look this INFO - No files matched glob: some/path/with/no/globs. Maybe you'd want a slight re-wording of the log?

"File not found: %s"

@lox lox merged commit 62c994a into master Jan 15, 2018
@lox lox deleted the fix-issue-619 branch January 15, 2018 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants