vendor.yaml presence breaks per-component component.yaml vendoring #119
Unanswered
jaguer0
asked this question in
Essential Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Atmos Version: 1.212.0 (darwin/arm64)
Summary
When a top-level
vendor.yamlexists in the project root,atmos vendor pull -c <component>ignores per-componentcomponent.yamlfiles entirely — even if the requested component is not defined invendor.yaml.Expected Behavior
atmos vendor pull -c vpcshould fall back tocomponents/terraform/vpc/component.yamlwhenvpcis not defined as a source invendor.yaml.Actual Behavior
Atmos only searches
vendor.yaml(and its imports) for the component name. If it's not found there, it errors out without checking for acomponent.yamlin the component directory:Steps to Reproduce
Have a project with existing per-component vendoring via
component.yamlfiles (e.g.,components/terraform/vpc/component.yamlwithkind: ComponentVendorConfig)Add a top-level
vendor.yamlfor any purpose:Run:
atmos vendor pull -c vpcObserve the error. Removing
vendor.yamlrestores expected behavior.Workaround
Remove the top-level
vendor.yamlbefore running per-component vendor pulls.Beta Was this translation helpful? Give feedback.
All reactions