carton
carton copied to clipboard
A dependency fails to have its resources copied by `carton bundle`
A dependency with a resource fails to have its resources copied by carton bundle
. I've updated the linked repository to show the problem.
This is the output of carton bundle
:
Bundle
├── TopLevelResource.md
├── c78bdf2c8a889c8f.wasm
├── c9143f6becf19317.js
├── index.html
└── swift-wasm-resource-bug_swift-wasm-resource-bug.resources
└── TopLevelResource.md
I see two potential issues:
-
TopLevelResource.md
appears twice. Once at the root, and once in a resource directory for the module. The specific resource directory seems more correct, as there could be name collisions across modules. -
Resource.md
from theSubPackageWithResource
package is missing entirely.
Originally posted by @fcanas in https://github.com/swiftwasm/swift/issues/2568#issuecomment-766252433
A repository for reproduction is available here https://github.com/fcanas/swift-wasm-resource-bug/