mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Can't install CoreStore via Swift Package Manager 3.1 #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TimothyMDean on GitHub (Apr 12, 2017).
I'm trying to set up a project with Swift Package Manager 3.1, and I'd like to include CoreStore as a dependency.
I get the following error when I execute the
swift package fetchcommand:@JohnEstropia commented on GitHub (Apr 16, 2017):
Hi, do you have an idea why this error occurs? The files in the error are all included in the module so I'm not sure what
means here.
@TimothyMDean commented on GitHub (Apr 18, 2017):
I suspect the problem is due to SPM's convention-based source layout assumption. According to the documentation, each subfolder under the Source folder is assumed to be its own module. If you are creating a single module, you can put all the source directly under
Sources.It seems like your source code layout is mixing up the tool by including source files both at the root level under
Sources, as well as subdirectories that contain more source files. It seems likely that SPM sees the subdirectories and assumes this is a multi-module source layout, but then it doesn't know what to do with the Swift files directly underSources.That's just my theory though - I haven't dug through the SPM source code to see if my theory is correct.
@JohnEstropia commented on GitHub (Apr 18, 2017):
Ah, that must be it. I've been looking for this documentation.
Hmm... I need to look for a way to tell the package manager to flatten the directories. I don't want to move all files in a single directory.
If anyone finds a way to do this, please let me know.
@JohnEstropia commented on GitHub (May 10, 2017):
@TimothyMDean Sorry for the wait. I've pushed a fix in CoreStore 3.1.1. Tell me if it works for you.