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

🐞 Directory.glob doesn't seem to be working as expected #7169

Open
marcosnils opened this issue Apr 23, 2024 Discussed in #7156 · 1 comment
Open

🐞 Directory.glob doesn't seem to be working as expected #7169

marcosnils opened this issue Apr 23, 2024 Discussed in #7156 · 1 comment
Labels
area/engine About dagger core engine kind/bug Something isn't working

Comments

@marcosnils
Copy link
Contributor

Discussed in #7156

Originally posted by skycaptain April 22, 2024
I may be missing something simple, but I'm currently struggling with Directory.glob returning an empty list instead of the files. Consider this example where I want to match all the files in the deploy/sdk directory. Note the different tmp-* directories:

mydir = (
    dag.directory()
    .with_new_file("build/tmp-build-a/deploy/sdk/test.txt", "FOO")
    .with_new_file("build/tmp-build-a/deploy/sdk/test.manifest", "BAR")
    .with_new_file("build/tmp-build-b/deploy/ipk/test.ipk", "BAZ")
)

await mydir.glob('build/tmp-*/deploy/sdk/*')

This example returns []. Running the same command with regular ls works fine. I tried different combinations of the pattern, but none have worked as expected. What could I be missing?

@marcosnils marcosnils added kind/bug Something isn't working area/engine About dagger core engine labels Apr 23, 2024
@marcosnils
Copy link
Contributor Author

cc @TomChv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine About dagger core engine kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant