Using python, one can trivially fire off an HTTP server to serve the files from the current directory using:
Is there an equivalent one-liner for Nim?
Hello, I cloned your repo and did nimble build. It failed with this error: http://ix.io/2nA6/text
I am using the latest nim devel.
OK, it builds find after uninstalling zip and doing nimble install zip@#head.
So the correct fix is:
ok. .now it compiles, but doesn't run:
could not load: libzip(|2).so(|.4|.2|.1|.0)
I'll have to figure this out later. I am using an admin managed OS, a very old OS: RHEL 6.8 (Linux).
I tried your repo as well. I cloned it and did nimble build, but it failed with this: http://ix.io/2nAa/text
It looks like the psutil dependency needs to be updated for a backward incompatible change that happened in nim 1.0.0. Now we have isDigit taking only char arg, not string.
I'll open a PR on psutil to fix this.
Awesome! That is the winner!
@Araq It would be now cool to bake that into nim :)
So the correct fix is:
1. Cut a new release of the zip nimble package
After three years, there is now a new zip version :)
zip is now at version 0.3.0, and it contains some recent changes, with the biggest one being this PR: https://github.com/nim-lang/zip/pull/60