cloudposse / cloudposse/atmos

describe dependents rejects missing optional targets

Open
#3,113 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
175
Avg merge
2d 3h
Merged PRs (30d)
134

Description

## Problem

`atmos describe dependents` rejects a missing target before it can apply an optional reverse dependency declaration.

## Reproduction

`./build/atmos --chdir tests/fixtures/scenarios/dependencies-components-inheritance describe dependents network-baseline --stack dev --format json`

The `dev/vpc` component declares `network-baseline` with `required: false`, but the command returns `invalid component` instead of an empty JSON result.

## Expected behavior

A target referenced only by optional dependencies should return an empty dependent list when the target is absent.

Contributor guide

Open the contributing guide

Research direction

Start with the `atmos describe dependents` command using the reproduction in `tests/fixtures/scenarios/dependencies-components-inheritance`. Trace how the missing `network-baseline` target is validated against the optional declaration in `dev/vpc`; done means the command returns an empty JSON dependent list instead of `invalid component`.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.