cloud-native-toolkit / iascable

IasCable is a node/typescript library to build installable component infrastructure components from a catalog of available modules
MIT License
13 stars 8 forks source link

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

Open daniel-butler-irl opened 1 year ago

daniel-butler-irl commented 1 year ago

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