Skip to content

Invalidate manifest cache when -Xbuild-tools-swiftc changes #7760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kateinoigakukun
Copy link
Member

The manifest cache key should take into account flags passed to -Xbuild-tools-swiftc

Motivation:

SwiftPM did not re-evaluate manifests even after changing -Xbuild-tools-swiftc

Modifications:

Hash those extra flags into manifest cache key

Result:

Manifest will be properly re-evaluated after changing -Xbuild-tools-swiftc.

@kateinoigakukun
Copy link
Member Author

@swift-ci test

@kateinoigakukun
Copy link
Member Author

@swift-ci test Linux

@kateinoigakukun kateinoigakukun marked this pull request as ready for review July 5, 2024 15:50
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Thank you!

@kateinoigakukun kateinoigakukun merged commit ea3461d into swiftlang:main Jul 5, 2024
5 checks passed
@xedin
Copy link
Contributor

xedin commented Jul 5, 2024

I think we should cherry-pick this to 6.0, would you mind opening a PR against release/6.0 branch?

@kateinoigakukun
Copy link
Member Author

Okay, opened it #7762

@kateinoigakukun kateinoigakukun deleted the yt/invalidate-manifest-cache-on-build-tools-flags branch July 6, 2024 03:13
@xedin
Copy link
Contributor

xedin commented Jul 6, 2024

Thank you!

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.

2 participants