-
Notifications
You must be signed in to change notification settings - Fork 190
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
nim project complains about missing src/ prefix in hybrid package #582
Comments
Removing the src/ prefix from everything and storing the binary sources in the repo root, next to the nimble file, seems to work. I think I'm going to go with that for now. |
|
Oh, you moved stuff around. Not sure what's going on. |
Yes, moving things to the repro root fixed my use case. The broken one is in git history: https://github.com/niv/neverwinter.nim/tree/c575f5fe8ced15e73ca926fb696ab26dafac20ef |
I'm encountering the same error/problem on this branch: https://github.com/iffy/wiish/tree/fix-datafiles I want to install the
And uninstalling:
In the nimble file, I've tried every combination of |
@iffy Does this not work?
|
@dom96, yes I finally got it to work (in a different branch), but not if I used |
I ended up with this issue today. Here's the nimble package directory structure as recommended in the README:
Here's the nimble file: # Package
version = "0.0.1"
author = "Kaushal Modi"
description = "Wrapper for SystemVerilog VPI headers vpi_user.h and sv_vpi_user.h"
license = "MIT"
srcDir = "src"
skipExt = @["bkp"]
installFiles = @["svvpi.nim"]
installDirs = @["svvpi", "includes", "sv"]
# Dependencies
requires "nim >= 1.4.6", "nimterop >= 0.6.13" When I
|
This is necessary as I am planning to add Nim sub-modules like svvpi/dpi in future commits. I cannot keep all the source code under an src/ directory, otherwise I run into this issue --> nim-lang/nimble#582 (comment) . Thus I am moving all source code to the root of this git repo.
see nim-lang/nimble#582 fix nimble file not installing library modules
What am I doing wrong here?
Prompt: Missing directory /Users/niv/.nimble/pkgs/neverwinter-1.1.1/src/neverwinter. Continue? [y/N]
Package in question: https://github.com/niv/neverwinter.nim
The intent is to have a hybrid package that installs a bunch of binaries, but also ships the library the binaries use for other packages to import.
nimble file
output when installing or using
The text was updated successfully, but these errors were encountered: