-
Notifications
You must be signed in to change notification settings - Fork 13
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
Is asdf breaking openfnx? #650
Comments
Troubleshooting: installing openfnx from kit will install to whatever node version kit is set to (18 at the time of writing). If you run openfnx from a different dir (and of course you will), it'll look in the global npm install for that local version. If it matches kit you're all good, if you've set the global or local verison differently, openfnx won't be available. Possible solutions:
The idea of different openfnx verisons sitting in different node installs is frankly a bit scary. Also how does any of this work in windows? |
I am pretty sure that this is just that asdf has several global node versions and openfnx just installs to one of them. Dirs with different asdf contexts will use a different globals folder and may not find openfnx (or worse, the wrong one) What we want is to somehow "breakout" the openfnx command so that it is not tracked by asdf. I want to use a global build of the openfnx bin against whatever node version is set in the working dir. |
See #653 maybe |
A clear take on the problem and solutions. Building openfnx from kit will build and install When you use What users must do today is set their local node version to match kit, with The only fix we can really do from
Where most of the that path is the result of calling When running openfnx like this, users will use whatever node version is set in that folder./environment. So the runtime node version would be different to the build-time version. But! When testing locally, the |
If you run
pnpm install:openfnx
insidekit
(and where else would you run it?) it'll installopenfnx
to the asdf context (version shim) associated with that folder.If you then step out of
kit
and runopenfnx
, you MIGHT be calling the bin from a different asdf context, ifyou've got a global version set or a tool-versions or something.Even worse, it might be that the different builds are reporting the same branch names. Certainly the output I just saw in mtuchi's log looked good. This is what he saw in his water-aid repo:
It looks fine! And yet behaved wrongly. I note that its using node 18.12 there, which is actually the same as what kit uses.
So I don't know. Maybe this is nothing. I need to do a few tests on my own machine and try to work this out.
I would like to ensure that
install:openfnx
registers theopenfnx
bin to some global place outside of asdf's reach. I want only one openfnx on the system. That may be impossible - the face is that asdf and any version manager is basically going to override whatever local config I set in kit. That's kind of the point.The text was updated successfully, but these errors were encountered: