Skip to content

swift package migrate should not apply edits to generated sources #8903

@owenv

Description

@owenv

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Plugin generated sources shouldn't have fix-it's applied, because they'll just be overwritten in subsequent builds. The attached fixture demonstrates this if migrated to the "ExistentialAny" feature

ExistentialAnyWithPluginMigration.zip

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions