NuKeeperDotNet / NuKeeper

Automagically update nuget packages in .NET projects
Apache License 2.0
540 stars 129 forks source link

NuKeeper tries to update from stable to beta with UsePrerelease=FromPrerelease #1111

Closed kipusoep closed 3 years ago

kipusoep commented 3 years ago

🐛 Bug Report

We're using NuKeeper with Azure DevOps pipelines and there seems to be an issue regarding UsePrerelease. The job itself looks like this:

# Update nuget packages that have minor changes and are available for a week.
- task: NuKeeper@0
  displayName: "NuKeeper Minor"
  inputs:
    version: '0.*'
    arguments: '--change minor --maxpackageupdates 9999 --consolidate true --branchnameprefix nukeeper/minor/'

As we're not explicitly setting the UsePrerelease argument, it should be set to FromPrerelease by default. Still a package update is suggested from a stable version to an unstable version:

StyleCop.Analyzers to 1.2.0-beta.354 from 1.1.118

Why is this happening?

Expected behavior

I'd expect NuKeeper not to update this package to an unstable version from a stable version.

Reproduction steps

See job description above.

Configuration

Task         : NuKeeper
Description  : Version 0.4.43
Version      : 0.4.43

Platform if applicable:

kipusoep commented 3 years ago

Never mind, some projects in the solution use a beta version, so that's why NuKeeper tries to update it to a beta for all projects.