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

Problems with --nimbleDir for certain directory names (starting with nimble?) #428

Closed
bluenote10 opened this issue Nov 12, 2017 · 0 comments

Comments

@bluenote10
Copy link
Contributor

I think there are some issues depending on the name of the --nimbleDir passed to Nimble. Given the following dummy .nimble file:

# Package

version       = "0.1.0"
author        = "Author"
description   = "dummy"
license       = "MIT"

# Dependencies

requires "nim >= 0.17.3"

Trying to run nimble --nimbleDir=./nimbleDir install gives the following traceback:

   Warning: Package 'dummy' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'dummy', but file 'nimscriptapi.nim' is in a directory named 'nimbleDir/nimblecache/nimblepkg' instead. This will be an error in the future.
      Hint: If 'nimbleDir/nimblecache/nimblepkg' contains source files for building 'dummy', rename it to 'dummy'. Otherwise, prevent its installation by adding `skipDirs = @["nimbleDir/nimblecache/nimblepkg"]` to the .nimble file.
  Verifying dependencies for dummy@0.1.0
 Installing dummy@0.1.0
Traceback (most recent call last)
nimble.nim(1024)         nimble
nimble.nim(963)          doAction
nimble.nim(463)          install
nimble.nim(383)          installFromDir
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
(333 calls omitted) ...
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(516)     iterInstallFiles
packageinfo.nim(522)     iterInstallFiles
nimble.nim(387)          :anonymous
tools.nim(98)            copyFileD
os.nim(1109)             copyFileWithPermissions
os.nim(524)              copyFile
oserr.nim(113)           raiseOSError
Error: unhandled exception: File name too long [OSError]

Using a different name like ./temp seems to work. I think the issue only occurs with names starting with nimble.

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

1 participant