Skip to content

Add Package edit support for packages with unsafe flags #8120

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

Conversation

hi2gage
Copy link
Contributor

@hi2gage hi2gage commented Nov 15, 2024

Fixes #8079

Allows unsafe flags for edited packages

Motivation:

Edited packages in SwiftPM should be allowed to use unsafe flags.

Modifications:

Adjusted logic in unsafeAllowedPackages to add .edited packages to the allowed list, alongside the root package and .fileSystem packages

Result:

After this change, edited packages will be permitted to use unsafe flags.

@hi2gage hi2gage force-pushed the add_packaged_edit_support_for_unsafe branch from 4d0f8a7 to 648734d Compare November 15, 2024 05:48
@dschaefer2
Copy link
Member

Awesome. That really annoyed me :).

@swift-ci please test

@dschaefer2 dschaefer2 merged commit d7a31a0 into swiftlang:main Nov 15, 2024
5 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.

Package edit doesn't support unsafe flags
2 participants