Skip to content

Parameterize getmingw call rather than duplicate long line - #2470

Open
Davis Goodin (dagood) wants to merge 1 commit into
microsoft/mainfrom
dev/dagood/mingw-pick-no-dup
Open

Parameterize getmingw call rather than duplicate long line#2470
Davis Goodin (dagood) wants to merge 1 commit into
microsoft/mainfrom
dev/dagood/mingw-pick-no-dup

Conversation

@dagood

Copy link
Copy Markdown
Member

Copilot AI lite review requested due to automatic review settings August 21, 2026 17:19
@dagood
Davis Goodin (dagood) requested a review from a team as a code owner August 21, 2026 17:19
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

This PR refactors the Windows “Install MinGW” pipeline step to avoid duplicating a long getmingw run invocation, improving maintainability and readability in the Azure DevOps stage template.

Changes:

  • Introduces PowerShell variables ($arch, $exception) derived from parameters.builder.arch.
  • Consolidates the duplicated getmingw run command into a single invocation using those variables.
  • Splits the long command across multiple lines with PowerShell line continuations for readability.

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

}
eng/run.ps1 go run github.com/microsoft/go-infra/cmd/getmingw run `
-ci azdo `
-source nixman -version 13.2.0-rt_v11-rev0 `

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we externalize version #?

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.

3 participants