Closed jackcallister closed 4 years ago
Hm, I’ve been running into this too.
I know this is a hack, but if you touch /usr/local/bin/joy
and then uninstall/reinstall it should work.
I’m still trying to figure out how to fix this 😑
I believe what was causing this was my 💩code in project.janet
which tried to symlink joy to /usr/local/bin
I've updated joy so this doesn't happen anymore.
Probably not what you wanted to see, but I solved this by deleting janet entirely:
brew uninstall janet
(in my case), then reinstalling then calling jpm install joy
The solution I had was to create the three files it looks for. I don't think this is a joy thing, i think it's a jpm
thing. jpm
appears to try and delete and if the file can't be found throws an error. That behaviour might be wrong in these situations. For reference:
touch /usr/local/bin/joy && touch /usr/local/lib/janet/joy && touch /usr/local/lib/janet/joy.janet
I also ended up with an issue with my db install and manually cloned the repo and had to do that same clean up steps for it to install manually. If you want to isolate this stuff easily I put a good clean Dockerfile together to run in isolation:
FROM alpine:3.7
RUN apk add --no-cache build-base curl git
RUN cd /tmp && \
git clone https://github.com/janet-lang/janet.git && \
cd janet && \
make all test install && \
rm -rf /tmp/janet
RUN jpm install joy
WORKDIR /var/app
RUN joy server
Assuming you mount your local dir into the remote. This has the obvious issue of no restarts on file change, but I'd like to work on getting that feature in.
Yeah I'm all for adding an official Dockerfile to the repo! Submit a PR and I'll merge it asap
I'm going to close this since it's been a while with no activity. And also... docker 🐟
Hello, I have an issue with installation vis jpm - here are the last few lines of the output: