-
Notifications
You must be signed in to change notification settings - Fork 525
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
Pointing dependency to specific version is not enough #777
Comments
did you run |
Yes, I tried the following procedure:
Only without also deleting the lock file, the wrong version (= latest version) was installed instead of the specific version. After I manually deleted the lock file first, it worked. |
Ok then this is a bug. Can you please provide the original dependencies file + original lockfile? Also please describe the change you did to the dependencies file. The idea is:
=> lock file gets updated. But only according to you changes in the dependencies file. (deleting packages folder will never have an impact) |
Ok, the original dependency file looked like:
and the lock file was:
(File abbreviated) I then changed the dependency file by specifically adding But the problem is, I think, that FSharpVsPowerTools already will be added by the Formatting lib, as the Formatting lib is dependent on that. Note that I did run the simplify command prior to this. So, I suspect that the nuget FSharp.Formatting will trigger the fetch of FSharpVSPowerTools prior to the resolution by the dependency file addition. |
yep. but we should detect that. |
thanks for providing me the data. I think I fixed it. I would appreciate if you could try again and confirm that the bug is indeed fixed in 0.41.3 |
Thanks for fixing this. Indeed this seems to work. |
I had a problem in which I had to point a dependency to a specific version. So, I changed this in the dependency file. However, later on I discovered that I also should delete the lock file as the wrong version was downloaded according to the out of sync lock file. Shouldn't changing the dependency file be enough without having to manually delete the lock file? See also issue: fsprojects/FSharp.Formatting#294
The text was updated successfully, but these errors were encountered: