-
Notifications
You must be signed in to change notification settings - Fork 28
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
release-it stuff errors, preventing addon generation #21
Comments
I can confirm that the release-it setup breaks installation for me too. I suspect it only works for someone who has previously done a global install of |
Hm, strange. There was indeed this issue before (#11), which was obfuscated for me as I indeed had release-it installed globally. But I thought this was fixed by #12! 🤔
You mean the node_modules of the generated addon? But these are not needed, we need the node_modules of the blueprint, which include Anyway, I will investigate this later... |
Perhaps that distinction is the problem. If execa is locating node binaries relative to the cwd it wouldn't reliably work here. I don't actually know though what execa is doing. |
I spent some time on this, but couldn't reproduce... So it turned out that I did have Then, to rule out anything particular of my (messed up?) system has an effect, I ran the blueprint within a freshly created docker container, no shared volumes, so nothing which could have leaked into it. And there it also works just fine!? 🤔 If you want to try it, this is what I did: docker run -it node bash
# then, on the guest machine:
npx ember-cli addon my-addon -b embroider-build/addon-blueprint --yarn Just to rule this completely out: you both have been using the very latest version of the blueprint, not any eventually stale local copy?
The fix (#12) I mentioned above specifically makes sure that execa looks for it based on the blueprint's folder, see https://github.com/embroider-build/addon-blueprint/blob/main/index.js#L83 |
I can confirm that installing |
should we remove release-it from the blueprint? how someone chooses to release is kind of a separate concern from project generation |
I, personally, prefer to release addons through a GitHub workflow and choose the release type manually so I've never used release-it. I thought I would find it helpful when moving Don't have a strong opinion either way - just providing some info. |
release-it removed here: #323 |
having a flag like #9 would be really good.
Here is the error I got:
when this error occurs, the addon directory is removed.
The text was updated successfully, but these errors were encountered: