Skip to content

Conversation

@ThinkerDreamer
Copy link
Member

I found that we weren't actually allowing valid Rust idents as ignored directories, and I remember we didn't test this in the integration tests because we didn't have any valid identifiers to use in that scope, so I wrote some unit tests inside the macro crate to test it there.

@paolobarbolini
Copy link
Member

I see we documented that identifiers are also valid entries in ignore dirs, but it probably doesn't make sense to do? It feels kind of misleading to have a variable looking piece of syntax act like a string.

@ThinkerDreamer
Copy link
Member Author

Yeah, you could be right about that. It's the same for the assets directory, too. Do you think it would be better to disallow everything except literal strings for both?

@paolobarbolini
Copy link
Member

Yes. Cc @dodomorandi

@ThinkerDreamer ThinkerDreamer changed the title Handle idents as ignore dirs Don't use idents as ignore dirs or asset dirs Apr 2, 2025
@ThinkerDreamer ThinkerDreamer force-pushed the handle-idents-as-ignore-dirs branch from 01a73c2 to 03ceaac Compare April 2, 2025 13:30
@paolobarbolini
Copy link
Member

The fix commit should be fix!: ..., given that it's a breaking change.

@ThinkerDreamer ThinkerDreamer force-pushed the handle-idents-as-ignore-dirs branch from 03ceaac to e034453 Compare April 2, 2025 13:42
@paolobarbolini paolobarbolini merged commit 2e9b8b2 into main Apr 3, 2025
14 checks passed
@paolobarbolini paolobarbolini deleted the handle-idents-as-ignore-dirs branch April 3, 2025 07:32
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.

3 participants