agent icon indicating copy to clipboard operation
agent copied to clipboard

Glob pattern dist/**/* doesn't discover top level (within dist/) files

Open VasiliiSikora opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. When using buildkite-agent artifact download "dist/**/*" . to download all artifacts in a compiled dist folder that has successfully been uploaded using artifact_paths: "dist/**/*" in the pipeline.yml file, the files downloaded do not contain files such as dist/express.js or dist/worker.js.

This seems unexpected for the given glob pattern.

NOTE: The above pattern does download all files that are contained in subdirectories, for example, dist/apps/express.js and dist/apps/worker.js are successfully downloaded with the above command.

Describe the solution you'd like A solution that allows me to download files described above with the glob pattern dist/**/*. Otherwise, documentation to explain why this pattern does not work for buildkite-agent

Describe alternatives you've considered I have found a workaround by using buildkite-agent artifact download "dist/**" ., however, unsure if this was intended behaviour or not.

Additional context N/A

VasiliiSikora avatar Aug 21 '23 11:08 VasiliiSikora

hey there! this is somewhat of a running issue - there's a bunch of edge cases and gotchas with artifact uploading and downloading. we have some work planned to work on making this better - we'll keep this issue open until we do, but in the meantime, it looks like your workaround is sufficient, if not quite desirable.

moskyb avatar Aug 23 '23 01:08 moskyb