exercism / configlet

The official tool for managing Exercism language track repositories.
https://exercism.org/docs/building/configlet
GNU Affero General Public License v3.0
22 stars 14 forks source link

`nimble install` doesn't work #654

Open ee7 opened 2 years ago

ee7 commented 2 years ago
Error: Could not read package info file in /home/foo/.nimble/pkgs/configlet-4.0.0/configlet.nimble;
   ...   Reading as ini file failed with: 
   ...     Invalid section: .
   ...   Evaluating as NimScript file failed with: 
   ...     /home/foo/.nimble/pkgs/configlet-4.0.0/configlet.nimble(1, 15) Error: cannot open file: patches/patch
   ... printPkgInfo() failed.

Both the build workflow (which only runs on release) and the tests workflow use nimble --accept install --depsOnly, which does work. So it looks like this will only affect people who clone the configlet repo and then run nimble install.

The cause is probably https://github.com/exercism/configlet/commit/1a295da327cd1e647a7feffe0387857e787eb30b.

Reported by @ErikSchierboom

ee7 commented 2 years ago

And if I do these steps (the second line removes the nimcache and nimblecache directories on my machine):

trash ~/.nimble/pkgs/configlet*
trash /tmp/nim*
git clone https://github.com/exercism/configlet /tmp/configlet
cd /tmp/configlet
git checkout 4.0.0-beta.5
nimble install

I get another error:

Error: Could not read package info file in /home/foo/.nimble/pkgs/configlet-4.0.0/configlet.nimble;
   ...   Reading as ini file failed with: 
   ...     Invalid section: .
   ...   Evaluating as NimScript file failed with: 
   ...     /home/foo/.nimble/pkgs/configlet-4.0.0/configlet.nimble(6, 22) Error: cannot open file: configlet.version
   ... printPkgInfo() failed.

So maybe this didn't work for a while? I won't bisect right now.

I never use nimble install for configlet myself, so I didn't notice this.