Skip to content

dotnet libman update installs deprecated package versions #724

Open
@LiteracyFanatic

Description

@LiteracyFanatic

Describe the bug

If a deprecated version of a package exists with a higher version number than the currently installed version, the tool will install the deprecated version. This only seems to happen with the cdnjs provider.

To Reproduce

Steps to reproduce the behavior:

  1. Add the following entry under libraries in libman.json:
    {
      "provider": "cdnjs",
      "library": "[email protected]",
      "destination": "wwwroot/assets/libs/datatables.net"
    }
  1. Run dotnet libman update datatables.net and the command will update to version 2.1.1 which is deprecated.

Expected behavior

Deprecated package versions should be ignored when updating.

Additional context

2.1.175+29a28921bd.RR

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