EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
70 stars 11 forks source link

nimble can't install picostdlib correctly #52

Closed ForceFaction closed 1 year ago

ForceFaction commented 1 year ago

The nimble output:

[mfg@Methadon ~]$ nimble install https://github.com/EmbeddedNim/picostdlib
Downloading https://github.com/EmbeddedNim/picostdlib using git
   Warning: Package 'picostdlib' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'picostdlib', but file 'blink.nim' is in a directory named 'template/src' instead. This will be an error in the future.
      Hint: If 'template/src' contains source files for building 'picostdlib', rename it to 'picostdlib'. Otherwise, prevent its installation by adding `skipDirs = @["template/src"]` to the .nimble file.
  Verifying dependencies for picostdlib@0.3.1
    Prompt: No local packages.json found, download it from internet? [y/N]
    Answer: y
Downloading Official package list
    Success Package list downloaded.
 Installing https://github.com/casey-SK/commandant@>= 0.15.1
Downloading https://github.com/casey-SK/commandant using git
  Verifying dependencies for commandant@0.15.1
 Installing commandant@0.15.1
   Success: commandant installed successfully.
 Installing https://github.com/beef331/micros@any version
Downloading https://github.com/beef331/micros using git
  Verifying dependencies for micros@0.1.1
 Installing micros@0.1.1
   Success: micros installed successfully.
 Installing picostdlib@0.3.1
   Building picostdlib/piconim using c backend
/home/mfg/.nimble/pkgs/micros-0.1.1/micros/definitions/routines.nim(161, 12) Warning: Use on a typed Procedure may result in accessing the wrong Stmtlist [User]
   Success: picostdlib installed successfully.
    Prompt: Missing directory /home/mfg/.nimble/pkgs/picostdlib-0.3.1/src/template. Continue? [y/N]
    Answer: N

It seems the structure makes it impossible for nimble to correctly install this package. The "missing" directory is obviously not missing.

[mfg@Methadon ~]$ ls .nimble/pkgs/picostdlib-0.3.1/
nimblemeta.json  piconim  piconim.nim  picostdlib  picostdlib.nimble  template
[mfg@Methadon ~]$ ls .nimble/pkgs/picostdlib-0.3.1/template/
config.nims  csource  src  template.nimble