Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prerelease package range causes stack overflow in PackageResolver #1432
We've been using a paket based package system internally to manage nuget packages within our organisation. In recent versions we've noticed a recurring error which forces us to pin to a lower version (we are using 2.39.10, but more investigation is needed to check whether more recent versions are stable)
When using the latest (2.47.2 release and also current master d0846c4 ) we get error when attempting to run
We have two situations in our build, one stable version where we wish to pull in only stable releases, and a prerelease version, where all dependencies are pulled in on the latest development/prerelease version.
the paket.dependencies file for a prerelease looks similar to
In this situation it looks like
Attached is a sample stack trace
This is a small reproducible testcase
Running setup_packages.sh with Paket 2.39.10 it will yield:
Later versions will yield:
so it seems to happen when one package defines a prerelease dependency and the other one a release dependency. Earlier this would resolve to the release dependency being picked.