-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add Step To Verify Yarn and NPM Packages Are In Sync #617
Conversation
|
Forget me, I didn't read yopur description before asking like a dumb dumb: |
pool: | ||
vmImage: 'windows-latest' | ||
steps: | ||
- task: UsePythonVersion@0 |
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.
Interesting, out of curiosity why use Python? Familiarity I assume?
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.
Yea, familiarity + speed of development time. Writing this in bash sounds... not fun. C# is an option though it's also not really in the repository much so either way it's an introduced new onboarding cost. My hope is someday VSCE will support these parts of npm and this script can be eradicated, or AzDo will support yarn and we can eliminate NPM, but since their issues for NPM have been open for a few years now, I don't expect it to happen anytime soon
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.
Makes total sense!
@dbaeumer is there someone we can chat with to better understand VSCE expectations / details around yarn / npm integrations?
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.
Thanks for linking, I did reach out to Joao. Here are the relevant issues in VSCE's repo microsoft/vscode-vsce#308
microsoft/vscode-vsce#580
microsoft/vscode-vsce#300
microsoft/vscode-vsce#381
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.
@NTaylorMullen the person to talk to is @joaomoreno
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.
My hope is someday VSCE will support these parts of npm
What specific features are you referring to?
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.
What specific features?
Thanks for following up (offline as well a while back.) All of the above are relevant but here are the main 2: microsoft/vscode-vsce#308 and microsoft/vscode-vsce#580
MERGE AFTER #616
With the new registry changes, we need to have a yarn.lock, otherwise yarn will update dependencies differently from npm and fail with auth errors. The reason we use two package managers is because of unsupported features in VSCE with npm so we can't only use npm, and AzDo does not support yarn, so we cannot only use yarn. We don't want the two to get out of sync, so this adds a checker that checks the diff of a PR to see if any changes made in npm locks are reflected in yarn locks.
Limitations: