Skip to content

Refresh headless scope as variables resolve - #96

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/headless-scope
Oct 13, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/headless-scope

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

An automatic resolution pass reused the scope from the start of the pass. Later literal variables received stale dependency values. Add each newly resolved value to the pass scope.

Related issues

No linked issue.

Verification

A three-variable dependency chain and built headless print resolve to the complete expected command without prompts.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz marked this pull request as ready for review October 13, 2026 04:19
@Gubarz
Gubarz merged commit 7c76d9c into cheatmd-dev:main Oct 13, 2026
1 check passed
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.

2 participants