swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.76k stars 1.35k forks source link

Add Package edit support for packages with unsafe flags #8120

Closed hi2gage closed 1 week ago

hi2gage commented 2 weeks ago

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.

dschaefer2 commented 2 weeks ago

Awesome. That really annoyed me :).

@swift-ci please test