Skip to content

fix workspace discovery & sorting when folder has an extension#121

Merged
jplatte merged 1 commit intoDevinR528:mainfrom
syphar:fix-folders-with-extensions
Jan 12, 2026
Merged

fix workspace discovery & sorting when folder has an extension#121
jplatte merged 1 commit intoDevinR528:mainfrom
syphar:fix-folders-with-extensions

Conversation

@syphar
Copy link
Copy Markdown
Contributor

@syphar syphar commented Jan 10, 2026

When trying to add cargo sort to docs.rs, I stumbled onto an odd issue:

cargo sort --workspace just gave me an error:

error: no file found at: /Users/syphar/src/rust-lang/docs.rs/

Looking through the source, the culprit seems to be that we're checking for an extension instead of checking if it's a directory before adding a Cargo.toml suffix / filename?

Manual testing is good after this change here.

Are there unittest for this I just didn't see?

Should we add some?

@jplatte jplatte merged commit 5dd17d3 into DevinR528:main Jan 12, 2026
4 checks passed
@syphar syphar deleted the fix-folders-with-extensions branch January 12, 2026 10:53
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

Successfully merging this pull request may close these issues.

2 participants