Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with include file for nimble install #1195

Open
ggb-sw opened this issue Mar 19, 2024 · 2 comments
Open

Problem with include file for nimble install #1195

ggb-sw opened this issue Mar 19, 2024 · 2 comments

Comments

@ggb-sw
Copy link

ggb-sw commented Mar 19, 2024

I have some nimble files that work satisfactorily when local to my machine, but nimble install fails to install them.

I just now put the files up to SourceForge, having been running them locally for some time.

If I run:

nimble --verbose install http://hg.code.sf.net/p/nim-safe-assign/code

Then I get the following response:

   Warning: The package has no tagged releases, downloading HEAD instead.
  Verifying dependencies for [email protected]
 Installing [email protected]
nimble.nim(324)          packageExists

    Error:  The package inside "/home/ggb/.nimble/pkgs2/safe_assign-0.1.0-12da8a61d0becbc2b5a317d4792d9ff31efe6f69" is invalid.
  Details:  Could not read package info file in /home/ggb/.nimble/pkgs2/safe_assign-0.1.0-12da8a61d0becbc2b5a317d4792d9ff31efe6f69/safe_assign.nimble;
        ...   Reading as ini file failed with: 
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with: 
        ...     /home/ggb/.nimble/pkgs2/safe_assign-0.1.0-12da8a61d0becbc2b5a317d4792d9ff31efe6f69/safe_assign.nimble(3, 9) Error: cannot open file: ./nimble_extras
        ... printPkgInfo() failed.
     Info:  Nimble data file "/home/ggb/.nimble/nimbledata2.json" has been saved.

Looking at the files downloaded (into /home/ggb/.nimble/pkgs2/safe_assign-0.1.0-12da8a61d0becbc2b5a317d4792d9ff31efe6f69), it seems that safe_assign.nim and safe_assign.nimble have been downloaded but nimble_extras.nim has not been downloaded (nor have any of the docs/ files been downloaded, but this would not cause the current issue).

Is there something I should put in the nimble file, or elsewhere, to allow all the other files to be downloaded?

@ggb-sw
Copy link
Author

ggb-sw commented Mar 20, 2024

It seem that nimble by design only allows very restrictive directory layouts and file names.

@bloomingchad
Copy link

please read the docs to include files or folders in your package nimble-reference.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants