You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this issue still relevant for glob?
This issue seems to suggest to you don't need a specialized API for this, instead it's possible to just modify the pattern to include the full path.
Is it significant for the starting directory and the pattern to be separate?
konstin
added a commit
to astral-sh/uv
that referenced
this issue
Sep 26, 2024
The `glob` crate does not allow changing the base directory (rust-lang/glob#54), it always uses the current directory. For workspaces however, our base is the `pyproject.toml`, not the current directory.
If we just join the base directory as we currently do, we risk interpreting the base directory as a glob and not as verbatim. Instead of escaping-and-conversion back-and-forth, we switch to the globwalk crate, which has dedicated support for this.
From the documentation:
I'd like to be able to say something like
glob_from(path_like_thing, "glob_pattern")
.The text was updated successfully, but these errors were encountered: