You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifying multiple dependencies with the same name, does not produce an error or warning. The resulting bundle will only install the last dependency with the name, and outputs will only be taken from the last dependency.
To Reproduce
Steps to reproduce the behavior:
Run porter create
And two dependencies with the same name, e.g.,
dependencies:
requires:
- name: hellobundle:
reference: ghcr.io/getporter/porter-hello:v0.2.0parameters:
name: First
- name: hellobundle:
reference: ghcr.io/getporter/porter-hello:v0.2.0parameters:
name: Second
Run this porter command porter install
Notice that the dependency is only installed once and that there are no errors no warnings
Expected behavior
An error that a dependency with the same name is specified multiple times, or at least a warning.
Porter Command and Output
$ porter install
Executing dependency hello...
executing install action from porter-hello (installation: /porter-hello-hello)
No existing bundle state to unpack
Install Hello World
Hello, Second
Collecting bundle outputs...
- name
Packing bundle state...
execution completed successfully!
executing install action from porter-hello (installation: /porter-hello)
Install Hello World
Hello World, Second
execution completed successfully!
Describe the bug
Specifying multiple dependencies with the same name, does not produce an error or warning. The resulting bundle will only install the last dependency with the name, and outputs will only be taken from the last dependency.
To Reproduce
Steps to reproduce the behavior:
porter create
porter install
Expected behavior
An error that a dependency with the same name is specified multiple times, or at least a warning.
Porter Command and Output
Version
porter v1.0.17 (605e399)
The text was updated successfully, but these errors were encountered: