Closed kateinoigakukun closed 1 week ago
Add debug assertion to avoid llbuild command name conflicts.
Depends on https://github.com/apple/swift-package-manager/pull/7695
One of the reasons we couldn't reveal https://github.com/apple/swift-package-manager/pull/7695 issue for long time (at least past 2 releases) is that we overlooked name conflicts on addWriteLinkFileListCommand.
addWriteLinkFileListCommand
Looking into the manifest builder, some of the commands also forgot to assert name conflicts, so it was error-prone.
Add a convenience method to perform assertions consistently
NFC for release build. Just add debug assertions
@swift-ci test
Out of curiosity does this catch any current bugs?
Fortunately, the current SwiftPM test suites didn't detect any bugs 😺
@swift-ci test Windows
Add debug assertion to avoid llbuild command name conflicts.
Depends on https://github.com/apple/swift-package-manager/pull/7695
Motivation:
One of the reasons we couldn't reveal https://github.com/apple/swift-package-manager/pull/7695 issue for long time (at least past 2 releases) is that we overlooked name conflicts on
addWriteLinkFileListCommand
.Looking into the manifest builder, some of the commands also forgot to assert name conflicts, so it was error-prone.
Modifications:
Add a convenience method to perform assertions consistently
Result:
NFC for release build. Just add debug assertions