Skip to content

docs(openspec): plan #2656 report a clear error for merge-key unset - #2719

Merged
dan-petty merged 1 commit into
mainfrom
fix/2656-devops-config-unset-stops-with-a
Oct 30, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2656-devops-config-unset-stops-with-a

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2656

devops config unset crashes with a TypeError when the target key is present only through a YAML merge key (<<: *anchor). The _find function in round_trip.py calls node.lc.key(dotted), which returns None for merged keys, and the code then indexes into None. This change adds a check in _find: when node.lc.key(dotted) is None, it raises a ConfigurationError that names the file and states the key comes from a YAML merge key. The command exits 1 with a clear message instead of a traceback. Direct key removal is unchanged.

Change: openspec/changes/2656-devops-config-unset-stops-with-a/

@dan-petty dan-petty changed the title fix: report a clear error for merge-key unset docs(openspec): plan #2656 report a clear error for merge-key unset Oct 30, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 00:20
@dan-petty
dan-petty self-requested a review as a code owner October 30, 2026 00:20
@dan-petty
dan-petty merged commit a383c5f into main Oct 30, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2656-devops-config-unset-stops-with-a branch October 30, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant