SwiftPM package naming question

I have a package that, on the filesystem, is named “tmpArbWidthInteger”, but its Package.swift file looks like this:
let package = Package(
    name: "ArbWidthInteger"
)
In another package, I have the 1st package listed as a dependency, and to use it there, I have to write "import tmpArbWidthInteger". I figured SwiftPM would pull the library’s name from the Package.swift file rather than the package directory's name, but "import ArbWidthInteger” throws a “no such module” error.

Have I found a bug, is the “name” feature not implemented yet, or did I just miss a couple pages in the manual?

- Dave Sweeris

The package manager will pick name from manifest if the sources are inside
Sources directory or in the root directory.

Documentation here: https://github.com/apple/swift-package-manager/blob/
master/Documentation/Reference.md#module-format-reference

···

On Mon, Jan 30, 2017 at 9:48 AM, David Sweeris via swift-users < swift-users@swift.org> wrote:

I have a package that, on the filesystem, is named “tmpArbWidthInteger”,
but its Package.swift file looks like this:
let package = Package(
    name: "ArbWidthInteger"
)
In another package, I have the 1st package listed as a dependency, and to
use it there, I have to write "import tmpArbWidthInteger". I figured
SwiftPM would pull the library’s name from the Package.swift file rather
than the package directory's name, but "import ArbWidthInteger” throws a
“no such module” error.

Have I found a bug, is the “name” feature not implemented yet, or did I
just miss a couple pages in the manual?

- Dave Sweeris

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

The package manager will pick name from manifest if the sources are inside
Sources directory or in the root directory.

Documentation here: https://github.com/apple/swift-package-manager/blob/
master/Documentation/Reference.md#module-format-reference

···

On Mon, Jan 30, 2017 at 9:48 AM, David Sweeris via swift-users < swift-users@swift.org> wrote:

I have a package that, on the filesystem, is named “tmpArbWidthInteger”,
but its Package.swift file looks like this:
let package = Package(
    name: "ArbWidthInteger"
)
In another package, I have the 1st package listed as a dependency, and to
use it there, I have to write "import tmpArbWidthInteger". I figured
SwiftPM would pull the library’s name from the Package.swift file rather
than the package directory's name, but "import ArbWidthInteger” throws a
“no such module” error.

Have I found a bug, is the “name” feature not implemented yet, or did I
just miss a couple pages in the manual?

- Dave Sweeris

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Yeah, I thought so… it seems to be working on one set of packages, but not on another. I’ll have to poke at it some more.

···

On Jan 29, 2017, at 11:56 PM, Ankit Aggarwal <ankit_aggarwal@apple.com> wrote:

The package manager will pick name from manifest if the sources are inside Sources directory or in the root directory.

Documentation here: https://github.com/apple/swift-package-manager/blob/master/Documentation/Reference.md#module-format-reference

Feel free to send a sample package you're having issue with!

···

On Mon, Jan 30, 2017 at 1:47 PM, David Sweeris via swift-users < swift-users@swift.org> wrote:

On Jan 29, 2017, at 11:56 PM, Ankit Aggarwal <ankit_aggarwal@apple.com> > wrote:

The package manager will pick name from manifest if the sources are inside
Sources directory or in the root directory.

Documentation here: https://github.com/apple/swif
t-package-manager/blob/master/Documentation/Reference.md#
module-format-reference

Yeah, I thought so… it seems to be working on one set of packages, but not
on another. I’ll have to poke at it some more.

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users