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

cpack nuspec results in "The path is not of a legal form" #164

Closed
chevdor opened this issue Mar 11, 2015 · 3 comments
Closed

cpack nuspec results in "The path is not of a legal form" #164

chevdor opened this issue Mar 11, 2015 · 3 comments

Comments

@chevdor
Copy link

chevdor commented Mar 11, 2015

Running cpack and getting the following error:

λ cpack -v test.nuspec
Chocolatey v0.9.9.2
The path is not of a legal form.

The verbose switch does not tell me more. it would be good to know WHICH path is not ok.

I figured out this happens only when I specify the nuspec file.

cpack myfile.nuspec gives the error
cpack works fine

I am using v0.9.9.2

@ferventcoder
Copy link
Member

Use .\myfile.nuspec

Out of curiosity, are you using powershell?

On Wednesday, March 11, 2015, Chevdor notifications@github.com wrote:

Running cpack and getting the following error:

Chocolatey v0.9.9.2
The path is not of a legal form.

The verbose switch does not tell me more. it would be good to know WHICH path is not ok.

I figured out this happens only when I specify the nuspec file.

`cpack myfile.nuspec` gives the error
`cpack` works fine

I am using  v0.9.9.2

—
Reply to this email directly or view it on GitHub
https://github.com/chocolatey/choco/issues/164.

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

@chevdor
Copy link
Author

chevdor commented Mar 11, 2015

thanks for the answer @ferventcoder

nop. I ran cpack in a command prompt (not powershell).

So cpack myfile.nuspec is expected to fail but not cpack .\myfile.nuspec ?
Odd, isn´t it 😕 ?

@ferventcoder
Copy link
Member

Kind of weird yes. Prolly something we should fix.

On Wednesday, March 11, 2015, Chevdor notifications@github.com wrote:

thanks for the answer @ferventcoder https://github.com/ferventcoder

nop. I ran cpack in a command prompt (not powershell).

So cpack myfile.nuspec is expected to fail but not cpack .\myfile.nuspec ?
Odd, isn´t it [image: 😕] ?


Reply to this email directly or view it on GitHub
#164 (comment).

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

@ferventcoder ferventcoder changed the title The path is not of a legal form cpack nuspec results in "The path is not of a legal form" Apr 8, 2015
@ferventcoder ferventcoder modified the milestone: 0.9.9.5 Apr 9, 2015
@ferventcoder ferventcoder self-assigned this Apr 9, 2015
ferventcoder added a commit that referenced this issue Apr 11, 2015
When file_system.get_full_path is passed an empty string resulting from grabbing
the directory name, it would throw the error above. Instead, allow it to return
immediately, then use the current directory instead.

This usually happens when calling `choco pack some.nuspec`.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Apr 11, 2015
* stable:
  (chocolateyGH-231) nupkg should be created in current directory
  (chocolateyGH-232) Pack includes files from nuspec directory
  (chocolateyGH-164) Fix "The path is not of a legal form"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants