-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Hello, I started to experiment with the spork/pm
module on Windows and found one problem, which I think is more of an oversight than an error.
In the .msi
configuration file on the path tools/msi/janet.wsx
, there are two places I consider relevant:
- https://github.com/janet-lang/janet/blob/master/tools/msi/janet.wxs#L78, where the directory structure of the installation is specified.
- https://github.com/janet-lang/janet/blob/master/tools/msi/janet.wxs#L163, where the environmental variables are specified.
As you can see, JANET_PATH
is set to <root>\Janet\Library
and JANET_BINPATH
is set to <root>\Janet\bin
. So far, so good. JPM is respecting these variables, as can be seen at https://github.com/janet-lang/jpm/blob/d93b7c243645d31410a81fb9ab8f7a5e5608f0d0/jpm/make-config.janet#L39. But with Janet's install bundle/add-bin
, the path is just the concatenation of JANET_PATH
and the string "/bin"
, so it does not respect the JANET_BINPATH
as can be seen at https://github.com/janet-lang/janet/blob/master/src/boot/boot.janet#L4501. In my opinion, we should also respect the environmental variable here.
I am not sure about the other operating systems. I am using Windows 11 with all the updates installed, and Janet 1.39.1 from the official release .msi
installer.