To summarize my thoughts from the github issue and PR, there are two big user experience reasons the artifact_paths field should accept directories as well as glob patterns.
Principle of least surprise. If artifact_paths contains some directory, it is very surprising when the contents of the directory are not uploaded, nor tried.
Using $BUILDKITE_ARTIFACT_PATHS in scripts with only glob paths makes some uses impossible. In particular, it is because you can’t unambiguously un-glob a string in bash. For instance, make prefix=$BUILDKITE_ARTIFACT_PATHS will simply never work unless directories can be in artifact_paths.
Just a quick bump. I haven’t heard anything new about this PR in some time. Is the team willing to look at it? I’d rather know sooner than later if it is not desired.
I could see that being a nice option. But I think it could violate the principle of least surprise which is the reason I opened the issue in the first place. When I specified a directory in artifacts_paths, and the agent told me it was ignoring the directory, I was surprised. I think I might be similarly surprised if my directory were magically turned into a tarball, too.
Hello, @john.soo! Thank you for reaching out! This issue is currently in the process of triage by the team. When some new information is available, someone from the support team will report here.