Skip to content

wslc: fix build by porting ObjectId argument to ArgumentOverrides syntax - #41497

Closed
ggarzia-MSFT wants to merge 1 commit into
masterfrom
user/ggarzia/fix-object-id-argument-create
Closed

ggarzia-MSFT wants to merge 1 commit into
masterfrom
user/ggarzia/fix-object-id-argument-create

Conversation

@ggarzia-MSFT

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

master does not currently compile. Two independently-correct PRs combined into a semantic merge conflict:

#41478 was validated against a base that predated #41463, and the two touch different lines, so git merged them with no textual conflict and no CI re-run. The result is a call site that cannot bind to any overload — there is only one Create declaration, so a 3-argument call is unconditionally ill-formed:

test\windows\wslc\WSLCCLIParserUnitTests.cpp(670,91): error C2660: 'wsl::windows::wslc::Argument::Create': function does not take 3 arguments while trying to match the argument list '(ArgType, bool, Limit)'

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Copilot AI lite review requested due to automatic review settings September 1, 2026 20:07
@ggarzia-MSFT
ggarzia-MSFT marked this pull request as ready for review September 1, 2026 20:08
@ggarzia-MSFT
ggarzia-MSFT requested review from a team as code owners September 1, 2026 20:08

Copilot AI left a comment

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.

🟢 Approval recommended

The change is a straightforward, verified mechanical port that resolves the stated compile failure without altering the test’s intended behavior.

Pull request overview

Fixes a build break in the wslc CLI unit tests caused by an API change to Argument::Create, by updating the remaining call site to use the newer ArgumentOverrides syntax.

Changes:

  • Update WSLCCLIParserUnitTests.cpp to construct ArgType::ObjectId with ArgumentOverrides (porting .Limit = Limit::Unlimited).
File summaries
File Description
test/windows/wslc/WSLCCLIParserUnitTests.cpp Ports the last outdated Argument::Create call to ArgumentOverrides to restore compilation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AmelBawa-msft
AmirMS (AmelBawa-msft) enabled auto-merge (squash) September 1, 2026 20:16
@benhillis

Copy link
Copy Markdown
Member

Heh, beat you by one minute ;)

#41496

@ggarzia-MSFT

Copy link
Copy Markdown
Contributor Author

Closing due to duplicate: #41496

auto-merge was automatically disabled September 1, 2026 21:01

Pull request was closed

@ggarzia-MSFT
ggarzia-MSFT deleted the user/ggarzia/fix-object-id-argument-create branch September 14, 2026 20:47
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.

5 participants