Skip to content

fix: extract embedded defaults during dry runs#278

Draft
dmcilvaney with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-dry-run-config-loading-issue
Draft

fix: extract embedded defaults during dry runs#278
dmcilvaney with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-dry-run-config-loading-issue

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

Dry-run skipped extracting embedded defaults into azldev’s temporary directory, causing project configuration loading to fail before command execution.

Changes

  • Copy semantics
    • Keep CopyDirRecursive dry-run-aware.
    • Make CopyDirRecursiveCrossFS unconditional, matching its contract.
  • Default configuration
    • Extract embedded defaults regardless of dry-run state.
    • Continue isolating extraction within azldev’s temporary directory.
  • Regression coverage
    • Cover project configuration loading with dry-run and built-in defaults.
    • Verify ordinary directory copies remain suppressed during dry-run.

Copilot AI requested review from Copilot and removed request for Copilot July 10, 2026 21:05
Copilot AI changed the title [WIP] Fix dry-run skips embedded default-config extraction fix: extract embedded defaults during dry runs Jul 10, 2026
Copilot AI requested a review from dmcilvaney July 10, 2026 21:10
Comment thread internal/projectconfig/config.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this dryrunnable anymore?
@copilot

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No—it became unused once default extraction was made unconditional. Removed it from LoadProjectConfig and the forwarding app method in 25dcdec.

Copilot AI requested review from Copilot and removed request for Copilot July 10, 2026 23:04
Copilot AI requested a review from dmcilvaney July 10, 2026 23:05
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.

Bug: dry-run skips embedded default-config extraction and breaks config loading

2 participants