Skip to content

BUG: Silently defaults to latest module version if invalid version is passed #298

@daniel-butler-irl

Description

@daniel-butler-irl

If you pass an invalid module version it appears to silently replace the version with the latest. I think it should throw an error and at the very least give a warning.

apiVersion: cloudnativetoolkit.dev/v1alpha1
kind: BillOfMaterial
metadata:
  name: test
spec:
  modules:
    - name: ibm-resource-group
      version: not_a_valid_version

This BOM successfully builds with not warnings, uses the latest version of ibm-resource-group

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