Open MatrixManAtYrService opened 1 month ago
I hate to say this but it works on my machine. If I get the time I'll try to remove more of the Atlas code from nim_lk and that might fix it.
Does this error still happen if you remove your ~/.nimble
directory?
Does this error still happen if you remove your
~/.nimble
directory?
Happens for me on aarch64-darwin even if I remove ~/.nimble, works on linux.
Can confirm what @marcusramberg found. Works on Linux (x86), not on Darwin (arm).
I'm in the process of a rewriting nim_lk so I won't try to resolve this issue until that is finished.
Describe the bug
Part of packaging a nim application is generating a lockfile for its dependencies. This involves using the
nim_lk
utility. Instead of generating a lockfile, it does this:Steps To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/MatrixManAtYrService/nim_lk_bug_apr30.git
cd nim_lk_bug_apr30
nix develop
bash-5.2$ nim_lk ./hello > ./hello/lock.json
Step 4 output:
Expected behavior
git clone https://github.com/MatrixManAtYrService/nim_lk_bug_apr30.git
cd nim_lk_bug_apr30
nix develop
bash-5.2$ nim_lk ./hello > ./hello/lock.json
bash-5.2$ exit
nix run '.#hello'
Step 6 should print "hello world" in fancy ascii-art letters, as seen below
Additional context
I believe that I have the nimble file correct because it builds ok if I don't use nix:
Notify maintainers
@ehmry @999eagle
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.