Skip to content

Only embed Windows resources for binary targets#374

Merged
karthiknadig merged 1 commit intomicrosoft:mainfrom
lingyaochu:win_resource
Mar 17, 2026
Merged

Only embed Windows resources for binary targets#374
karthiknadig merged 1 commit intomicrosoft:mainfrom
lingyaochu:win_resource

Conversation

@lingyaochu
Copy link
Contributor

Closes #373

Ensures winresource only runs when building binary targets by checking the CARGO_BIN_NAME environment variable. This prevents resource conflicts when pet is used as a library dependency on Windows.

@karthiknadig karthiknadig self-requested a review March 16, 2026 17:55
@karthiknadig karthiknadig enabled auto-merge (squash) March 16, 2026 17:56
@karthiknadig
Copy link
Member

The test failure here is because fork don't have write permissions and these pipelines use write to add coverage and perf data.

@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 17, 2026
@karthiknadig karthiknadig merged commit 9e61a22 into microsoft:main Mar 17, 2026
20 of 25 checks 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.

build.rs conflicts with downstream projects on Windows (CVT1100: duplicate resource)

3 participants