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

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

Open
VasiliiSikora opened this issue Aug 21, 2023 · 1 comment

Comments

@VasiliiSikora
Copy link

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

@moskyb
Copy link
Contributor

moskyb commented Aug 23, 2023

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.

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

No branches or pull requests

2 participants