Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Chris Larson <clarson@kergoth.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH] fetch2: raise an exception if user specifies protocol=git with http://
Date: Sun, 07 Oct 2012 21:03:05 +0100	[thread overview]
Message-ID: <3573045.RzU7PMqlKt@helios> (raw)
In-Reply-To: <CABcZAN=iu0M2T+wUQNAy9gGcFALvvVSPUPUNdGqB+bauK3_B1w@mail.gmail.com>

On Saturday 06 October 2012 15:38:45 Chris Larson wrote:
> On Sat, Oct 6, 2012 at 3:32 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
> > On Saturday 06 October 2012 15:27:42 Chris Larson wrote:
> >> On Wed, Oct 3, 2012 at 5:27 AM, Paul Eggleton
> >> 
> >> <paul.eggleton@linux.intel.com> wrote:
> >> > It is a common mistake to use http:// and protocol=git when attempting
> >> > to fetch from a git repository using the http protocol; if this is
> >> > detected then throw an error explaining that you need to use git://
> >> > with
> >> > protocol=http instead.
> >> > 
> >> > Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> >> 
> >> Perhaps this should check the protocol= value against the protocols
> >> supported by wget (ftp, http, https, etc), if the parameter is passed,
> >> rather than hardcoding the exceptions.
> > 
> > I don't think protocol= is currently used with the wget fetcher is it?
> 
> It isn't, but it also doesn't seem ideal to hardcode knowledge of the
> git fetcher in the wget one. Either way, I just wanted to make sure
> both options were considered.

I did consider checking for any use of protocol= and failing if any value is 
specified; perhaps we should still do that; for the purposes of helping people 
avoid a common pitfall however, it seems reasonable to me to check explicitly 
for protocol=git and I would still advocate leaving that check and message in 
even if we did add a general check on protocol.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



      reply	other threads:[~2012-10-07 20:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 12:27 [PATCH] fetch2: raise an exception if user specifies protocol=git with http:// Paul Eggleton
2012-10-06 22:27 ` Chris Larson
2012-10-06 22:32   ` Paul Eggleton
2012-10-06 22:38     ` Chris Larson
2012-10-07 20:03       ` Paul Eggleton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3573045.RzU7PMqlKt@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=clarson@kergoth.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox