Skip to content

Add assertion that DeprecationEntry flag do not have dashes - #16475

Merged
sholderbach merged 2 commits into
nushell:mainfrom
132ikl:deprecation-assert
Aug 19, 2025
Merged

sholderbach merged 2 commits into
nushell:mainfrom
132ikl:deprecation-assert

Conversation

@132ikl

@132ikl 132ikl commented Aug 19, 2025

Copy link
Copy Markdown
Member

Added a debug_assert when using DeprecationType::Flag to ensure that the dashes aren't included as part of the flag name. This will hopefully catch something like the issue discovered in #16473 from occurring.

Release notes summary - What our users need to know

N/A

Comment thread crates/nu-protocol/src/deprecation.rs Resolved
@sholderbach
sholderbach merged commit dd664e3 into nushell:main Aug 19, 2025
@github-actions github-actions Bot added this to the v0.107.0 milestone Aug 19, 2025
@WindSoilder WindSoilder added notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes labels Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants