Closed Barsonax closed 5 years ago
Related issue is #711, to be closed when this is merged.
Cleared block from issue #716.
What's the state of this PR, e.g. which are the ToDos that are still to be done before review? Only seeing "Test Test Test" in the main comment, not sure what exactly that means 😄 (Especially since the build / tests appear to be failing right now)
There seems to be a breaking change in nuget:
Also VertexBatchTest.Locking fails for me locally (but not on appveyor?) not sure why.
IsLatestVersion is somehow wrongly set on the 1.0.0.0 TestPlugin package:
Modified code in PackageManager.cs a bit to catch the bug earlier in the process. Seems to have something to do with the LazyLocalPackageRepository:
So atleast that rules out a bug in our custom NuGetTargetedPackageManager class since this happens before this class is even created.
Nuget v2.8.5 is the last version that doesn't exhibit this behavior. All versions from v2.8.6 on seem to have this bug.
EDIT: LazyLocalPackageRepository is just a lazy wrapper around LocalPackageRepository. However there are changes in LocalPackagesRepository. See the comparison here: https://github.com/Barsonax/NuGet2/pull/1/files#diff-7c6f995120e8d40ffdb3cfc81c06c279R1
Ah I see we have a custom piece of code that sets the is latest. This piece of code expects a LocalPackageRepository to be present. However from nuget 2.8.6 on its now wrapped in a LazyLocalPackageRepository so it fails to spot its a local package repo. Fix should be easy.
EDIT: next build should succeed...
TODO:
Great work, looking forward to the test results 👍
Also VertexBatchTest.Locking fails for me locally (but not on appveyor?) not sure why.
This could be related to semi-unsafe code, we should verify it's not an x86 / x64 disparity or something like that. Can you open a new issue detailing the exact failure, as well as the test init logs regarding processor architecture and process modes?
Did the following tests:
@ilexp I guess you want to take a look as well before merging this?
@ilexp I guess you want to take a look as well before merging this?
Will do as soon as I manage.
Looks fine to me, I'd say we're ready for merge. Will proceed when I find the next sufficiently large time frame to do so without a rush.
Also VertexBatchTest.Locking fails for me locally (but not on appveyor?) not sure why.
@Barsonax Any info on this? Is this still an issue?
No that test still fails. Created issue about it: https://github.com/AdamsLair/duality/issues/719
Seems to have nothing to do with this PR so lets merge this and look into that issue afterwards.
Seems to have nothing to do with this PR so lets merge this and look into that issue afterwards.
Agreed. Proceeding as outlined above and as time allows 👍
Merged, triggered a package release, and updated the download package.
TODO:
nuget.core
to 2.14 to support netstandard (discovered in #710)