-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
node and npm version issues #801
Comments
@jonaslagoni @fmvilas @magicmatatjahu need your view on this one |
Well, we cant stay at 12 forever anyway, might be a good time to switch 👍 It's hard to know how many this will affect as I don't think we have any metrics for who is using the tools in Node 12 environments 🤔
The only concern I might have with installing the release-related dependencies separately it is almost impossible to debug and work on locally (might never want to do it 🤔?). But if you think it's a better solution then sure 👍 |
Let's not exaggerate the fact that someone is using v12. If there are problems it will be fixed on the repository side. About We should make some official announcement when we wanna switch to the new approach and new version of NodeJS (alongside with npm version) and adjust all repositories in 1/2 days. EDIT: Should we transfer that issue to the |
actually, this is why I added it to I will leave this issue here, as it was mainly related to generator, failing tests and I want to have it there for people interested in reason why issues are in generator I will create a new issue in In the issue I will mention all maintainers from all the repos, to raise awareness and visibility Any objections? |
Some clarification, while working on creating an issue I realised that our global PR testing workflow tests only against 14 by default. Only in generator I used I'll keep ya posted. First the refactor of release pipeline must go through. |
Where do I even start...got for sure triggered by failing test in #799
We started having a problem with tests in this project. We run them at the moment on nodejs 12,14,15 and 15 is causing issues. This is easy, we can just switch to 16 and 15 is anyway not LTS.
When we switch to 16, which we should do anyway, we get an issue that
semantic-release
must be bumped because the version doesn't match the Node release. Easy, just bump the packageAnd then the problem starts, we get a bunch of issues related to
peerDependency
in release-related plugins as they are referring wrong versions, all that stuff.Now wait, why these issues did not pop up before? it is because according to my knowledge early versions of node 16 had npm 7 while the latest versions include npm 8.
I tried to solve peer dependency issues - it was good. Worked like a charm...until I thought, I'll check with Node 12...and it failed as latest
semantic-release
do not support Node 12There are 2 threads in this issue, 2 different challenges:
devDependencies
inpackage.json
. In my opinion to make it easier in the future, and less error-prone (I mean why do we even care about release-related dependency during testing when these packages are not relevant) we should actually remove release-related dependencies frompackage.json
and install them as a separate step in the release workflow, fixed to a specific version. We already do it like this in Go projects -> https://github.com/asyncapi/parser-go/blob/master/.github/workflows/release.yml#L50-L51So yeah, when I started writing this issue, I did not think I'll end up describing 2 fundamentally different solutions for one problem....especially since in my opinion we should actually work on these 2 solutions anyway.
Thoughts?
@jonaslagoni might be also related to #797
The text was updated successfully, but these errors were encountered: