Sitelet https://github.com/fsprojects/Paket/issues/1432
Skip to content

Prerelease package range causes stack overflow in PackageResolver #1432

Description

@rkachowski

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 paket update. From a brief look it appears that the error is due to recent changes in the prerelease handling code.

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

source http://private_repo
nuget package_name >= 0.0.0-prerelease

In this situation it looks like getCompatibleVersions is only returning non prerelease versions and so the resolver gets stuck in a loop when it recurses on step.

Attached is a sample stack trace
stacktrace.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions