Skip to content

Using commit ids for prerelease tag breaks dependency #1195

@johnwc

Description

@johnwc

The issue with using git commit ids as prerelease values is that they are not incremental and break the sorting. If a nuget monorepo gets built with a project reference, the dependency is >= 1.0.1-beta-df61s0df. The next build gets built but only one project gets updated, but the updated project now references the other project using the current commit id, but the current commit id just so happens to be sorted lower than previous version. The nuget update manager in VS thinks the older nuget package is the newest, when in fact there is one higher but has a commit id that is making it sort wrong.

Is there a way to fix this kind of issue with monorepos, or a feature can be added to enable using something like build id that is incremented each pipeline run and the commit id is set as metadata.

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