nim-lang / nimble

Package manager for the Nim programming language.
https://nim-lang.github.io/nimble/index.html
Other
1.25k stars 191 forks source link

Files in <package>pkg not installed #568

Closed h3rald closed 6 years ago

h3rald commented 6 years ago

I am using Nim v.0.19.0 and Nimble v0.9.0.

I am trying to get a simply package following the "hybrid" directory structure to install properly, but it doesn't seem to work. Or better, it does install but not all files are copied.

Here is what I get when I try to install it via nimble install:

$ nimble install nimhttpd
Downloading https://github.com/h3rald/nimhttpd using git
  Verifying dependencies for nimhttpd@1.0.5
 Installing nimhttpd@1.0.5
   Building nimhttpd/nimhttpd using c backend
   Success: nimhttpd installed successfully.
       Tip: 13 messages have been suppressed, use --verbose to show them.
     Error: nimble.nim(1106)         nimble
        ... nimble.nim(1044)         doAction
        ... nimble.nim(483)          install
        ... nimble.nim(442)          installFromDir
        ... nimscriptexecutor.nim(21) execHook
        ... packageparser.nim(398)   getPkgInfoFromFile
        ... packageparser.nim(359)   readPackageInfo
        ... Could not read package info file in /Users/h3rald/.nimble/pkgs/nimhttpd-1.0.5/nimhttpd.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     /Users/h3rald/.nimble/pkgs/nimhttpd-1.0.5/nimhttpd.nimble(11, 21) Error: cannot open file: nimhttpdpkg/config.

Basically:

Any idea of why this is happening?

dom96 commented 6 years ago

Yes, please see the breaking change in the latest changelog https://github.com/nim-lang/nimble/blob/master/changelog.markdown#090---19092018

h3rald commented 6 years ago

Ohhhh I see! Didn't check the changelog! I thought it was working before.

Alright, I specified installExt = @["nim"] and I am now able to install my package properly.

Thanks dom!