Skip to content

[Feature Request]: Enable Publishing to always publish if no version was found in the target location #2153

Closed

Description

Description

Currently, a module is only published if git detects code changes for a module when comparing with Head^-1.

This can lead to some undesired behavior if you set up CARML for the first time, directly in main, and run the pipelines without any module changes. If that's the case, you won't be able to publish unless you apply a workaround such as a modification of the version.json file.

To mitigate this behavior we could add some logic to the publishing to the dedicated target locations (i.e., ACR, Template Specs, Universal Packages) that not only checks for changes, but also if there is already a version in that target location. If there is none, the pipeline could then decide to publish even if there are no module changes.

Activity

  1. added
    enhancement
    [cat] publishing
    on Sep 30, 2022
  2. eriqua commented on Sep 30, 2022

    @eriqua
    Contributor

    Also as a separate issue, but related to the last point above, we should restrict the comparison logic which triggers the publishing to ignore changes to readme and test files as those should not impact the module version.

  3. changed the title [-][Feature Request]: Enable Publishing to always publish if not version was found in the target location[/-] [+][Feature Request]: Enable Publishing to always publish if no version was found in the target location[/+] on Sep 30, 2022
  4. changed the title [-][Feature Request]: Enable Publishing to always publish if no version was found in the target location[/-] [+][Feature Request]: Enable Publishing to always publish if no version was found in the target location & compare the hashes if there is[/+] on Dec 2, 2022
  5. changed the title [-][Feature Request]: Enable Publishing to always publish if no version was found in the target location & compare the hashes if there is[/-] [+][Feature Request]: Enable Publishing to always publish if no version was found in the target location[/+] on Dec 2, 2022
  6. AlexanderSehr commented on Dec 2, 2022

    @AlexanderSehr
    ContributorAuthor

    Linked to #2401

  7. moved this to Ready for review in Backlogon Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[cat] publishingenhancement

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions