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
fix(script): Remove name sanitiztion outside what is strictly required (#16120)
### What does this PR try to resolve?
Note that we are currently inconsistent in that `test` gets sanitized
but nothing else in `sysroot`.
We reviewed what gets sanitized in the Cargo team meeting and found none
of these really apply to cargo scripts except conflicting with artifact
dirs.
For conflicting with artifact dirs, making this an error now gives us
the best compatibility story.
A user can workaround this by overriding `package.name`.
Our paths forward include:
- Leave it as-is or at least improve the error message for this case
- Make it so we don't need the error message
- Add back sanitizating the name
Ideally, we make it so we don't need the error message.
The ground work was laid out for this in #16086.
The next step is to move the conflict error from manifest parsing to
compilation so we can check whether target-dir and build-dir overlap to
error.
There are unknowns with this,
including whether the usability is good enough for making this error
conditional on the target-dir and build-dir overlapping.
We may even want to wait until we change the default build-dir.
### How to test and review this PR?
0 commit comments