Closed finestructure closed 2 months ago
This is a bug in swiftPM (https://github.com/swiftlang/swift-package-manager/issues/6440). You'll notice in the manifest file I've told it to find source code inside the folders "Services/CognitoIdentity", "Extensions/CognitoIdentity" and not anywhere else, but it still proceeds to tell me about files outside of those two directories
Ah, I see. Thanks for the pointer to the underlying issue!
I've noticed that building Soto injects lots of noise into the build logs:
The problem appears to be the following target declaration:
The
path:
of this target references but does not use the source files of all the other targets (of which there are a few 😅).An impractical solution would be to
exclude:
list all the other target source dirs but that clearly would be very tedious and noisy in the manifest file.Unfortunately, since
path:
takes only a single path, it can't be set up to reference two distinct source dirs under which to locate the folders references insources:
. Perhaps the source files could be re-arranged to move them under their own source dir?and
In my testing this does fix the issue.
It's obviously not an ideal source layout but perhaps it could be a template to find a solution that has better layout?