Skip to content

Conversation

owenv
Copy link
Collaborator

@owenv owenv commented Sep 4, 2025

This is similar to the existing setting which allows clearing the global compiler cache

try operation.fs.removeDirectory(cachePath)
} catch {
// Log error but do not fail the build.
emit(diagnostic: Diagnostic.init(behavior: .warning, location: .unknown, data: DiagnosticData("Error cleaning up \(cachePath): \(error.localizedDescription)")), for: activity, signature: signature)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Phrase as "failed to remove" rather than "error cleaning up"?

Using the word "error" in a warning message could be confusing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure, makes sense

@owenv owenv force-pushed the owenv/module-cache-setting branch from 35b8b1a to 7935840 Compare September 4, 2025 21:01
@owenv
Copy link
Collaborator Author

owenv commented Sep 4, 2025

@swift-ci test

@owenv owenv merged commit 9b6ffb8 into swiftlang:main Sep 4, 2025
37 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.

3 participants