-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: parsing mixed-value toml arrays #25416
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
fix: parsing mixed-value toml arrays #25416
Conversation
Upgrade `@iarna/toml` to v3 which should support mixed values within TOML arrays. Updated one of the test fixtures to make use of the newer `[dependency-groups]` section. Fixes: microsoft#25413 Signed-off-by: JP-Ellis <josh@jpellis.me>
|
@microsoft-github-policy-service agree |
|
@eleanorjboyd Any chance you could take a look at this? |
Tyriar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eleanorjboyd we should not accept dependency changes from external contributors like in VS Code.
|
That's on odd policy... Is that to mitigate supply chain attacks? I must've missed it in your contribution guide. What about when a PR actually fixes an issue? How do I get it accepted? |
|
Hi! Sorry for the confusion, I can look at handling this on my end. One question, when I run |
|
I am not the developer behind this dependency, so I can only speculate:
I have no idea how |
|
@JP-Ellis yes it's to mitigate supply chain attacks. This is something we do on microsoft/vscode to prevent one possible avenue for attack, and we should do it here as well. No offence intended 😉 Until we have an action that blocks it, this could be handled by @eleanorjboyd checking out the upgrade (seems safe if it's been years) and then running the npm install on her side to generate the lock file on a trusted machine. |
|
Thanks @Tyriar for the full explanation! I am going to make the changes on my end and share the PR. |
|
opened this PR which will fix this: #25584 |
|
My PR is not just a package version upgrade. I'm also updating the test to validate that the issue is actually fixed. |
|
very true! Would you prefer I port over this change to my new branch or do you want to change this PR to just include the test for validation? Want to make sure you get credit! |
|
I'm happy for you to build on top of this PR, and run the necessary dependency verification and lockfile updates. |
|
ok cherry picked it to here: #25585 |
|
Awesome thanks! |
Upgrade
@iarna/tomlto v3 which should support mixed values within TOML arrays.Updated one of the test fixtures to make use of the newer
[dependency-groups]section.Fixes: #25413