Skip to content

Issue with leading vs #1250

@Pluies

Description

@Pluies

What happened:

In some cases, Zeitgeist is having some issues with leading vs in semver versions.

For example, the following dependencies.yaml config:

  - name: sloth
    version: 0.11.0
    scheme: semver
    sensitivity: minor
    upstream:
      flavour: github
      url: slok/sloth
    refPaths:
      - path: src/layers/3-observability/sloth.tf
        match: zeitgeist:sloth

Sees v0.12.0 as a new version and tries to upgrade it as:

  - name: sloth
    version: v0.12.0
    scheme: semver
    sensitivity: minor
    upstream:
      flavour: github
      url: slok/sloth
    refPaths:
      - path: src/layers/3-observability/sloth.tf
        match: zeitgeist:sloth

(Notice the added leading v)

And the matching update in the file:

image:
  repository: ghcr.io/slok/sloth
-  tag: v0.11.0 # zeitgeist:sloth
+  tag: vv0.12.0 # zeitgeist:sloth

What you expected to happen:

When the leading v is omitted in the dependencies.yaml, I expect zeitgeist to not add it anywhere else, and upgrade only the version instead

How to reproduce it (as minimally and precisely as possible):

See above

Anything else we need to know?:

Environment:

standard

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.sig/releaseCategorizes an issue or PR as relevant to SIG Release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions