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

paket.references gets overwritten by paket install #1344

Closed
ForNeVeR opened this issue Jan 5, 2016 · 10 comments
Closed

paket.references gets overwritten by paket install #1344

ForNeVeR opened this issue Jan 5, 2016 · 10 comments
Labels

Comments

@ForNeVeR
Copy link
Contributor

ForNeVeR commented Jan 5, 2016

I've created new console project with Visual Studio (and closed it, so no any interference between VS and Paket), let's call it ConsoleApplication8, and done the following:

.\.paket\paket.exe init
.\.paket\paket.exe add nuget Tesla.Csxcad version 0.0.1-alpha3

Then written the following to ConsoleApplication8\paket.references:

Tesla.Csxcad

After that I've ran .paket\paket install. It overwritten my paket.references with the following:

FSharp.Data

I've set up the test repository here. That is the state I got after paket install.

Is it a bug or not? Is it okay that it removes my Tesla.Csxcad from paket.references?

@forki
Copy link
Member

forki commented Jan 5, 2016

something is fucky here. I'll investigate

@forki forki added the bug label Jan 5, 2016
@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Jan 5, 2016

Some additional details: that Tesla.Csxcad is written and published by me, so it could have any number of NuGet-related problems (because I'm a total NuGet noob). And it really have this FSharp.Data dependency.

@forki
Copy link
Member

forki commented Jan 5, 2016

image

;-) you have a packages.references in the content folder of you package. This file gets extracted and overwrites the existing file.

@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Jan 5, 2016

Ah. Thanks for pointing that! Definitely my fault and not a Paket issue.

@ForNeVeR ForNeVeR closed this as completed Jan 5, 2016
@forki forki reopened this Jan 5, 2016
@forki
Copy link
Member

forki commented Jan 5, 2016

I think I will add a error message here to make that more bovious.

@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Jan 5, 2016

Well, that would be really nice.

@forki forki closed this as completed in e7f4636 Jan 5, 2016
@forki
Copy link
Member

forki commented Jan 5, 2016

we now skip this file and show a warning.

image

/cc @theimowski please verify that I didn't break your scenario

@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Jan 5, 2016

Thank you!

@theimowski
Copy link
Member

No it shouldn't - I zip only paket.dependencies and paket.lock. Think I used 2.40.4 today and it was fine

@forki
Copy link
Member

forki commented Jan 5, 2016

thanks buddy

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

No branches or pull requests

3 participants