Skip to content

Make referencing a non-existent plugin an error #5650

@tonyarnold

Description

@tonyarnold

Description

If I have no resources associated with a target, but subsequently generate resources using a build tool plugin, the Bundle.module extension is not added to my target, meaning that I cannot easily access the resources I've just added.

Expected behavior

If I generate resources as part of a build tool plugin, that should have the same effect as adding resources via the Package description - I should be able to use Bundle.module.

Actual behavior

Bundle.module is not added to my target, meaning that I cannot easily refer to generated resources that the build tool plugin has added to my target.

Steps to reproduce

Please see the attached sample: Tools.zip

Swift Package Manager version/commit hash

Swift 5.7.0

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

swift-driver version: 1.60 Apple Swift version 5.7 (swiftlang-5.7.0.120.1 clang-1400.0.28.1)
Target: arm64-apple-macosx13.0
Darwin Tonys-MBP.localdomain 22.0.0 Darwin Kernel Version 22.0.0: Tue Jun 28 20:46:36 PDT 2022; root:xnu-8792.0.134.131.2~1/RELEASE_ARM64_T6000 arm64

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions