[swift-build-dev] [swift-dev] Right list?

Max Howell max.howell at apple.com
Fri Feb 26 12:44:36 CST 2016


> Usernames strike me as too short to serve as a universal discriminator by themselves, and as you noted, tie the system to a specific service. Reverse-domain is certainly more precedented.

I imagined only using username when the package has a URL that is a github URL.

Really it would just be a convenience for:

    import com.github.mxcl.PromiseKit

> I'm jumping into this conversation in the middle, so pardon me if this has already been discussed, but could the package manifest take responsibility for mapping global package identifiers to their source-level module names? That would let you say:
> 

> let dependencies = [
>   "SadunString": "org.sadun.SwiftString",
>   "FoobarStrings": "com.foobar.SwiftString"
> ]
> 
> and would give users some leeway to change their module references, should their dependencies end up forked or vendors.

Our long term goals include plans for “overrides” to allow users to say, for this module name, use this package URL. Yes. And probably we could roll that into this proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160226/af5f59b5/attachment.html>


More information about the swift-build-dev mailing list