Skip to content

[Bug Report]: Publishing a new module from a feature branch with prerelease will create other stable releases #3891

Closed

Description

Describe the bug

Scenario: First time developing a module, and I am on a feature branch, never published before.. I do my work and I commit to source control, I want to run the module pipeline, but tick the
prerelease
option so I can get a test version out.. When the publish happens.. I noticed that not just a
prerelease
gets created, but a whole lot of versions along side..

image

To reproduce

Create a new module in a feature branch.
deploy the pipeline with a prerelease parameter.
The published module will contain other versions not just prerelease

Code snippet

foreach($missingModule in $missingModules) {
            if($modulsToPublish.TemplateFilePath -notcontains $missingModule.TemplateFilePath) {
              $modulesToPublish += $missingModule
            }
          }

Relevant log output

No response

Activity

  1. added
    bug
    on Sep 1, 2023
  2. changed the title [-][Bug Report]: Publishing a new module from a feature branch with prerelease will create/overwrite other stable releases[/-] [+][Bug Report]: Publishing a new module from a feature branch with prerelease will create other stable releases[/+] on Sep 1, 2023
  3. moved this from Needs triage to Closed in Bug boardon Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

  • Status
    Closed

Relationships

None yet

Development

No branches or pull requests

Issue actions