Skip to content

Duplicate Tags - How to skip to a new version #760

Open

Description

@brockwmills

Hello,

We are using gitlab and semantic-release and semantic-release/gitlab plugin to do version tagging / creating releases.

Our pipeline was broken by someone manually adding tags (without the associated release in gitlab), so we are now in a situation where our pipeline using semantic-release is trying to create version tag 1.1.0-develop.25 but we are up to 1.1.0-develop.36

We have been manually doing the pipeline job since v25 (the devs were unaware of semantic-release, let alone how it worked and needed to get builds out).

We created a release manually in gitlab on the v25 tag, however the semantic-release script is still trying to create v25.

Is there a way to manually do the releases in gitlab to convince semantic-release to use the latest version?

I have seen semantic-release uses git notes to store current version info, I guess that the gitlab plugin uses the gitlanb releases instead to maintain the version info? There are no results for git notes list on our repo.

Thanks

Activity

  1. gravypower commented on Sep 6, 2024

    @gravypower

    +1 this has happened for me also

  2. fgreinacher commented on Sep 17, 2024

    @fgreinacher
    Contributor

    Can one you please provide a minimal project on GitLab.com that shows this behavior? That would really help us understand the situation better. 🙇

  3. brockwmills commented on Sep 26, 2024

    @brockwmills
    Author

    Not without some significant effort, it's an internal repository.

    I guess what would be really useful is to know where sematic-release sources the current version number from, is it purely the releases in gitlab, or is there some extra place it is looking as well?

  4. travi commented on Sep 26, 2024

    @travi
    Member

    semantic-release uses tags and git notes to manage versions and what has been released in which channel. from your mentioned versions, it looks like you are using gitflow with out prerelease workflow (which, btw, is not officially supported), so you will need to repair both to recover from the situation you are in. you can find details about how to do so in our docs at:

  5. brockwmills commented on Sep 26, 2024

    @brockwmills
    Author

    does it use git notes when I'm using the gitlab plugin? If I run git notes on the repo in question there is no output eg:

    $ git notes
    $ echo $?
    0
    $ git notes list
    $
    
  6. travi commented on Oct 25, 2024

    @travi
    Member

    git notes are used by the core of semantic-release to track which distribution channels a version has been released to. if you are only releasing to your default channel from your default branch, notes are not important. they are much more important for pre-releases and maintenance release workflows

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions