[swift-build-dev] [Draft] SwiftPM: Adding development package as a dependency
Ankit Agarwal
ankit at ankit.im
Tue Mar 29 18:11:33 CDT 2016
Updated the proposal to commandline override here:
https://github.com/aciidb0mb3r/swift-evolution/blob/swiftpm_dev_package/proposals/NNNN-swiftpm-development-package-as-dependency.md
On Wed, Mar 30, 2016 at 1:17 AM, Ankit Agarwal <ankit at ankit.im> wrote:
>
>
> On Wed, Mar 30, 2016 at 1:10 AM, Max Howell <max.howell at apple.com> wrote:
>
>> 1) You have to remember to modify it back at some point, and if you are
>>>> iterating frequently this is tedious and error-prone
>>>>
>>>
>>> One way I can think of to avoid Package.swift is to place DevPackages
>>> inside some special folder (perhaps: DevPackages/) inside the root package
>>> which sounds good if I am developing some patch to some package but it
>>> might be awkward if I am starting to write a library and want to create a
>>> package to try it because I'll already have created the library package
>>> (though maybe minimal) but then I'll have to move the library inside
>>> DevPackages/
>>>
>>>
>>> Well, it seems to me part of the utility here is having a package be a
>>> local clone in an entirely different directory. So this sounds a bit
>>> tedious.
>>>
>>>
>> Any other way you can think of to avoid Package.swift?
>>
>>
>>
>> This seems pretty similar to standard overrides as part of the lockfile
>> proposal to me, so we could add it on there, maybe with
>> a convenience command line.
>>
>
> Okay, does this sound good :
>
> `swift build --dev-pkg=../MyLib --dev-pkg=../MyLib2`
>
> --
> Ankit
>
>
--
Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160330/fd7cd972/attachment.html>
More information about the swift-build-dev
mailing list