Skip to content

binarycaching: also don't restore file times on windows#1750

Merged
BillyONeal merged 1 commit intomicrosoft:mainfrom
autoantwort:fix/correct-file-times-binarycaching
Aug 14, 2025
Merged

binarycaching: also don't restore file times on windows#1750
BillyONeal merged 1 commit intomicrosoft:mainfrom
autoantwort:fix/correct-file-times-binarycaching

Conversation

@autoantwort
Copy link
Copy Markdown
Contributor

This fixes microsoft/vcpkg#33714, but for windows. 7zip restores file times by default and there is no way to disable it.

This currently breaks our build at work. We use grpc and the generated headers has to match with the version of grpc that is currently in use. We use the following target but it is not triggered since the last modification date of the restored grpc tool (ProtocExe) is older than the headers:

<Target Name="GrpcGenerateCode" BeforeTargets="ClCompile"
	Inputs="@(NormalizedProtoFile);$(ProtocExe)"
	Outputs="@(_GrpcGeneratedHeaders);@(_GrpcGeneratedSources)">
    ...
</Target>

After this PR it worked as expected.

This fixes microsoft/vcpkg#33714, but for windows.
7zip restores file times by default and there is no way to disable it.
Copy link
Copy Markdown
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Thanks!

@BillyONeal BillyONeal merged commit d0b4508 into microsoft:main Aug 14, 2025
7 checks passed
@autoantwort autoantwort deleted the fix/correct-file-times-binarycaching branch August 14, 2025 22:01
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.

[tool] Consider passing -DD flag to unzip when unzipping binarycached artifacts

2 participants