Re: [swift-users] "swift package describe" performs fetch

2017-04-10 Thread Toni Suter via swift-users
Hi Ankit,

Ok, thanks. I filed a bug: https://bugs.swift.org/browse/SR-4554 


Best regards
Toni

> Am 10.04.2017 um 17:38 schrieb Ankit Aggarwal :
> 
> Hi Toni,
> 
> This looks like a bug, can you file a JIRA at bugs.swift.org 
> ?
> 
> On Thu, Apr 6, 2017 at 9:10 PM, Toni Suter via swift-users 
> > wrote:
> Hi everyone,
> 
> I would like to obtain detailed information about a package and all its 
> dependencies in an automated fashion. At first I thought that the
> two commands "swift package describe" and "swift package show-dependencies" 
> are a perfect fit for that. More concretely,
> I wanted to perform the following commands:
> 
> 1. Execute the command "swift package fetch" to make sure that all 
> dependencies are downloaded
> 
> 2. Execute the command "swift package show-dependencies --format json" to 
> obtain a description of
> each package (i.e., name, path, etc.) as well as the dependency relationship 
> between the packages.
> 
> 3. For each package, do the following to obtain information about the modules 
> in that package:
>   cd path-of-package
>   swift package describe --type json
> 
> However, if a package has dependencies, the command "swift package describe 
> --type json" will perform another fetch.
> I am not sure why this is necessary since the output of that command only 
> contains information about the individual modules of
> the package. Unfortunately, this means that the same dependencies are 
> downloaded multiple times if a package's dependencies have
> themselves further dependencies, which makes the process above quite slow. Is 
> this a bug or is there another way to retrieve the same information?
> 
> Thanks and best regards
> Toni
> 
> ___
> swift-users mailing list
> swift-users@swift.org 
> https://lists.swift.org/mailman/listinfo/swift-users 
> 
> 
> 

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


Re: [swift-users] "swift package describe" performs fetch

2017-04-10 Thread Ankit Aggarwal via swift-users
Hi Toni,

This looks like a bug, can you file a JIRA at bugs.swift.org?

On Thu, Apr 6, 2017 at 9:10 PM, Toni Suter via swift-users <
swift-users@swift.org> wrote:

> Hi everyone,
>
> I would like to obtain detailed information about a package and all its
> dependencies in an automated fashion. At first I thought that the
> two commands "swift package describe" and "swift package show-dependencies"
> are a perfect fit for that. More concretely,
> I wanted to perform the following commands:
>
> 1. Execute the command "swift package fetch" to make sure that all
> dependencies are downloaded
>
> 2. Execute the command "swift package show-dependencies --format json" to
> obtain a description of
> each package (i.e., name, path, etc.) as well as the dependency
> relationship between the packages.
>
> 3. For each package, do the following to obtain information about the
> modules in that package:
> cd path-of-package
> swift package describe --type json
>
> However, if a package has dependencies, the command "swift package
> describe --type json" will perform another fetch.
> I am not sure why this is necessary since the output of that command only
> contains information about the individual modules of
> the package. Unfortunately, this means that the same dependencies are
> downloaded multiple times if a package's dependencies have
> themselves further dependencies, which makes the process above quite slow.
> Is this a bug or is there another way to retrieve the same information?
>
> Thanks and best regards
> Toni
>
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


[swift-users] "swift package describe" performs fetch

2017-04-06 Thread Toni Suter via swift-users
Hi everyone,

I would like to obtain detailed information about a package and all its 
dependencies in an automated fashion. At first I thought that the
two commands "swift package describe" and "swift package show-dependencies" are 
a perfect fit for that. More concretely,
I wanted to perform the following commands:

1. Execute the command "swift package fetch" to make sure that all dependencies 
are downloaded

2. Execute the command "swift package show-dependencies --format json" to 
obtain a description of
each package (i.e., name, path, etc.) as well as the dependency relationship 
between the packages.

3. For each package, do the following to obtain information about the modules 
in that package:
cd path-of-package
swift package describe --type json

However, if a package has dependencies, the command "swift package describe 
--type json" will perform another fetch.
I am not sure why this is necessary since the output of that command only 
contains information about the individual modules of
the package. Unfortunately, this means that the same dependencies are 
downloaded multiple times if a package's dependencies have
themselves further dependencies, which makes the process above quite slow. Is 
this a bug or is there another way to retrieve the same information?

Thanks and best regards
Toni___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users