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

Use directory instead of file when searching for uv.toml file #3203

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

haarisr
Copy link
Contributor

@haarisr haarisr commented Apr 23, 2024

Summary

The function find_in_directory joins uv.toml. The initial join in user is redundant.

Also a small comment fix.

Test Plan

Not really sure how to test this. Please suggest if any tests need to be added.

@haarisr haarisr changed the title Bugfix Use directory instead of file when searching for uv.toml file Apr 23, 2024
Ok(Some(Self {
options: find_in_directory(&file)?.unwrap_or_default(),
options: find_in_directory(&root)?.unwrap_or_default(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think this should just be read_file and not find_in_directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@charliermarsh charliermarsh self-assigned this Apr 23, 2024
@charliermarsh charliermarsh added bug Something isn't working configuration Settings and such labels Apr 23, 2024
@charliermarsh charliermarsh merged commit 1c2a7f6 into astral-sh:main Apr 23, 2024
38 of 39 checks passed
@charliermarsh
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working configuration Settings and such
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants