I like the current API, and it is right in line with the API exposed by git 
command line.

Unfortunately Sharmila Gopirajan Sivakumar showed us that this is not 
obvious, and keyword arguments are more self documenting. In the end I 
think keyword arguments makes sense for Pkg.clone(), and Pkg.checkout().



kl. 20:25:26 UTC+1 mandag 20. januar 2014 skrev John Myles White følgende:
>
> Keyword arguments seem like a much better approach.
>
>  — John
>
> On Jan 20, 2014, at 11:23 AM, Stefan Karpinski 
> <[email protected]<javascript:>> 
> wrote:
>
> This makes me wonder if the API should change. Maybe keyword arguments for 
> both the package name and branch?
>
>
> On Mon, Jan 20, 2014 at 1:25 PM, Ivar Nesje <[email protected]<javascript:>
> > wrote:
>
>> Can't you just do
>>
>> >Pkg.clone("https://gitub.com.....","pkgname";)
>> >Pkg.checkout("pkgname","branch")
>>
>> Ivar
>>
>> kl. 19:18:23 UTC+1 mandag 20. januar 2014 skrev Sharmila Gopirajan 
>> Sivakumar følgende:
>>>
>>> Hi Stefan,
>>>             Thank you for responding.  As an extension of my 
>>> understanding of Pkg.checkout, I assumed that Pkg.clone(url, name) would 
>>> clone the branch 'name' for the repo at 'url'.  My bad. It still installs 
>>> only the master branch. Right now there doesn't seem to be support to 
>>> install a branch or tag through Pkg.clone(). 
>>>
>>> I want to use John's fork because it is DBI complaint and supports 
>>> prepared statements and parameter binding which the official version 
>>> doesn't.  
>>>
>>>  I just now read John Myles White's response too.  While I accept his 
>>> idea, would it not be useful to have the ability to install from the branch 
>>> or tag of an unregistered Package?  If you feel that is a valid feature, I 
>>> would be happy to help add it.
>>>
>>> Regards,
>>> Sharmila
>>>
>>>
>>> On Mon, Jan 20, 2014 at 9:43 PM, Stefan Karpinski 
>>> <[email protected]>wrote:
>>>
>>>> That did successfully install the package. However, as per the 
>>>> documentation for 
>>>> Pkg.clone<http://docs.julialang.org/en/latest/stdlib/pkg/?highlight=pkg.clone#Base.Pkg.clone>,
>>>>  
>>>> it did so under the package name "jmw". Did you mean for the second 
>>>> argument to be a branch name? You can checkout a specific branch after 
>>>> cloning the package using the Pkg.checkout command. Also, SQLite is an 
>>>> official, registered package, so installing it via Pkg.clone is a bit 
>>>> unusual. Do you need John's fork for some particular reason?
>>>>  
>>>>
>>>> On Mon, Jan 20, 2014 at 8:10 AM, Sharmila Gopirajan Sivakumar <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>     I want to install a package from a github branch, specifically, 
>>>>> https://github.com/johnmyleswhite/SQLite.jl/tree/jmw .  I tried the 
>>>>> following command
>>>>>
>>>>> Pkg.clone("https://github.com/johnmyleswhite/SQLite.jl.git";, "jmw")
>>>>> INFO: Cloning jmw from https://github.com/johnmyleswhite/SQLite.jl.git
>>>>> INFO: Computing changes...
>>>>> INFO: No packages to install, update or remove.
>>>>>
>>>>> Julia is not able to install the package.  Is it possible to locally 
>>>>> checkout the code and install from source?  
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Regards,
>>>>> Sharmila
>>>>>
>>>>
>>>>
>>>
>
>

Reply via email to