-
Notifications
You must be signed in to change notification settings - Fork 376
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
(nodejs)(nodejs.install) rework update script to be more future-proof (#2452) #2453
Conversation
I want to highlight the following points:
|
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
I am clueless about the build problem or how to fix it. |
Did you check the AppVeyor logs for the error? |
Although text in the green box states an error, about missing About the text in the red box: I have no clue what code is executed and what it should do and what fails.
ok? this should be good (but why yellow?) Having absolutly zero knowledge about AppVeyor and considering that this is my first choco comunity PR I wouldnt see the cause of the failing pipeline in my code changes. |
Did you test the |
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.
I haven't ran the code, but it's not necessary to specify, or cast all variables in PowerShell. This doesn't follow the code style used here. Can you remove that and only do it if necessary?
Is there a reason you're using parseexact
rather then Get-Date
?
Of course I can remove it. Because our internal coding guideline is to explicitly set variable types (so you cannot store unwanted types) I set them here also.
Get-Date is to get the current date but doesnt allow conversion from string into datetime |
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
Appreciate that. However, you ticked the box to say that your code follows the style of the repository which it doesn't.
That's not the only thing it does and it does. |
How will we address the failing build? |
@AdmiringWorm can you take a look at this? |
I have never seen this before, and I ran the updater locally as well (to ensure it wasn't just an AppVeyor PR build error), and the same thing is happening locally as well. I can only assume that the version we end up with is actually null or empty that causes this issue. EDIT: Found the reason |
✅ Package verification completed without issues. PR is now pending human review |
@pauby Is there something I have to do to get this PR completed? Or is just the review open? |
See the comments above from @AdmiringWorm as there may be more to do. |
@pauby |
@michha You've requested a review from @AdmiringWorm. They next step is for that review to take place. |
@AdmiringWorm As long as the script isnt fixed, the choco package still misses the NodeJS security releases from 3rd and 10th of April, see https://nodejs.org/en/blog/vulnerability |
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.
I had not added this PR to my list of reviews as it had been reviewed by someone else originally.
From my view, though, there is only one change that is absolutely needed before we can have this merged in.
Also, if you can. Please update your commit messages to have the package name affected as the prefix, similar to the title of the PR. |
Is it ok to squash my commits? |
✅ Package verification completed without issues. PR is now pending human review |
That would have been okay yes. |
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.
LGTM
@michha your changes have been merged. Thanks for your contribution 👍 We apologize for the time it took to get this merged, and thank you for your patience. |
(Node.js here) thank you all for working on this and fixing distribution updates of Chocolatey for Node.js 🙇 |
Description
Instead of parsing a markdown file, the script uses official JSON files to find the latest versions of each support channel.
Motivation and Context
NodeJS website fundamentaly changed some weeks ago. I reached out to the NodeJS team (Discussion 52407) and got the hints to json files. Fixes #2452
How Has this Been Tested?
I tested the content of the changed
au_GetLatest
method and also ran theupdate.ps1
script (which downloaded the correct files but failed locally because of missing choco command [we dont use choco on our dev systems])Types of changes
Checklist: