Skip to content

[6.2] swift-package-migrate: Call SwiftFixIt once for all diagnostic files #8961

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

Merged
merged 2 commits into from
Jul 22, 2025

Conversation

AnthonyLatsis
Copy link
Contributor

  • Explanation: This excludes the possibility of repeated fix-it application caused by accidental emission of migration warnings in dependency modules. Also:

    • Add a comment for why we exclude plugins from migration.
    • Add SwiftFixIt test for directory exclusion.
    • Tidy up excluded directory checks in the diagnostic filter.
    • Add missing @Test to SwiftFixIt test.
  • Scope: swift package migrate.

  • Issues: —

  • Original PRs: swift-package-migrate: Call SwiftFixIt once for all diagnostic files #8933.

  • Risk: Low.

  • Testing: The filtering this change relies on is already properly tested in SwiftFixItTests.

  • Reviewers: @xedin @owenv

Also tidy up excluded directory checks in the diagnostic filter and
add missing `@Test` to a test function.

(cherry picked from commit bcf6049)
This excludes the possibility of repeated fix-it application caused by
accidental emission of migration warnings in dependency modules.

Also add a comment for why we exclude plugins from migration.
@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

@AnthonyLatsis AnthonyLatsis enabled auto-merge (rebase) July 21, 2025 23:55
@dschaefer2
Copy link
Member

@swift-ci please test macOS

@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test Windows

@AnthonyLatsis AnthonyLatsis merged commit bff6681 into release/6.2 Jul 22, 2025
6 checks passed
@AnthonyLatsis AnthonyLatsis deleted the jepa-release branch July 22, 2025 08:55
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