Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

BUG: "dnu commands install" fails to find .sha512 #2192

Closed
giggio opened this issue Jul 6, 2015 · 9 comments
Closed

BUG: "dnu commands install" fails to find .sha512 #2192

giggio opened this issue Jul 6, 2015 · 9 comments
Assignees
Milestone

Comments

@giggio
Copy link
Contributor

giggio commented Jul 6, 2015

I have a project.json that depends on FluentMigrator version 1.5.1.0. This package defines its version as 1.5.1.0. If I try to install my package (FluentMigrator.Runner.Aspnet):

dnu commands install FluentMigrator.Runner.Aspnet --no-cache

It fails because it can't find the .sha512 file:

Could not find a part of the path 'C:\Users\username\.dnx\bin\packages\FluentMigrator\1.5.1.0\FluentMigrator.1.5.1.0.nupkg.sha512'.

It is looking for the 1.5.1.0 directory, but dnu is saving it without the last .0, so I have on disk only the $HOME\.dnx\bin\packages\FluentMigrator\1.5.1 directory. And installation fails.

@giggio
Copy link
Contributor Author

giggio commented Jul 6, 2015

The problem also happens on dnu restore for the package.

giggio added a commit to giggio/FluentMigrator.Runner.Cli that referenced this issue Jul 6, 2015
@davidfowl
Copy link
Member

The problem is that these packages have inconsistent nuspec versions.

@muratg @ChengTian @anurse we should fix this ASAP. A bunch of packages are running into this. We need to resolve the inconsistencies between package version in the nuspec and elsewhere.

@davidfowl davidfowl added the bug label Jul 7, 2015
@davidfowl davidfowl added this to the 1.0.0-beta6 milestone Jul 7, 2015
@muratg
Copy link
Contributor

muratg commented Jul 7, 2015

👍

@troydai
Copy link
Contributor

troydai commented Jul 8, 2015

@giggio Could you let us know what's version of the DNX you're using?

I fail to repo this issue with either beta5 or beta6 latest with this command (targeting alpha3 since you work around the problem in alpha4):

dnu commands install FluentMigrator.Runner.AspNet 1.0.0-alpha3 --no-cache

@davidfowl
Copy link
Member

This absolutely repros. I can repro it myself without a commands install.

@giggio
Copy link
Contributor Author

giggio commented Jul 9, 2015

@troydai that is because I have forked the original FluentMigrator.Runner and uploaded a correct version to Nuget (which I plan to remove as soon as the original is fixed).

@troydai
Copy link
Contributor

troydai commented Jul 9, 2015

@giggio I can repo the issue now. Working on it.

@troydai
Copy link
Contributor

troydai commented Jul 9, 2015

Fixed in cae8aab

@giggio
Copy link
Contributor Author

giggio commented Jul 13, 2015

@davidfowl @troydai Any workarounds at this point to work with these packages and beta5?

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

No branches or pull requests

5 participants