-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
The generator does not use templates installed in node_modules #425
Comments
@laat Hey, I need more details to fully understand the issue.
|
At the moment, when installing I want reproducible builds, and to do that I need all dependencies declared in The code change I've suggested should work with |
ok, that makes sense would you mind opening a PR, I'd love to help with testing different scenarios. I would work on your PR for a couple of days to make sure all works well |
@derberg I created a PR :) |
@laat yeap, noticed. Will write down all possible test scenarios that need to be checked and starting from that point we will see how to approach testing. I don't want to throw responsibility for writing missing tests on you, but if you want to work on them, I will not stop you 😄 |
@laat wouldn't it be better for you to just install with |
It still does not solve the reproducible builds issue. Because package-lock.json is ignored. |
@laat are you 100% sure it is ignored? the installation logs show 200 or rather different code (302 I think)? |
Yes. First setting up the repository https://github.com/laat/repro-asyncapi-generator
Then see that it should install buffer 5.6.0 exactly: Observe that it actually installs buffer 5.6.1: |
you know what, I did some tests locally and yeah, I decided to first write down supported scenarios:
The question would be what is wrong with now some other question, did you try just this:
|
Ok, right, I did I created a project where I installed latest generator and old version of html-template without pdf generation support:
I run and I got error but also the template was downloaded fresh, with lots of 200s |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
come one bot, can't you see I'm working on it, doh! |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Release 1.2 enables support for latest node and npm and fixes all known installation issues. In case you see some other issues, please create a new issue. Please use |
The bug
This installs @asyncapi/html-template twice.
repro: https://github.com/laat/repro-asyncapi-generator
Expected behavior
It should reuse installed templates. This lets me pin templates at a specific version
The repro has a patch
This solves the issue for me. Essentially
require.resolve
does the heavy lifting and should support the intended uses of the replaced code.The text was updated successfully, but these errors were encountered: