All of lore.kernel.org
 help / color / mirror / Atom feed
* Only index.html is cloned in private repo clone recipe #yocto
@ 2020-10-07  8:29 Bel Hadj Salem Talel
  2020-10-07  8:34 ` [yocto] " Paul Barker
  0 siblings, 1 reply; 5+ messages in thread
From: Bel Hadj Salem Talel @ 2020-10-07  8:29 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

Hello All,

I have a private git repo which is in a local gitlab server.
Here is the local repo domain: http://gitlab.tools.comp.local/comp/sense/sense_frontend
I already saved the git credentials (username and password) , and I created this recipe:

LICENSE = "CLOSED"
SRCURL = "http://gitlab.tools.comp.local/ comp /sense/sense_frontend"
SRCBRANCH = "master"
SRCPROTO = "https"
# Define the source for this recipe
SRC_URI += " ${ SRCURL} ;protocol= ${ SRCPROTO} ;branch= ${ SRCBRANCH} "
SRC_URI[md5sum] = "1becf51a6312d09f0c1c22120efd499c"
SRC_URI[sha256sum] = "142e3af77b6851b614d07012abce145ce2526b8d0d95e7a94cff62f0e6432d26"

When I do do_fetch and do_unpack I only see the index.html file of the repo is downloaded.
What is the problem ?
How can I solve this?

Thanks, Talel

[-- Attachment #2: Type: text/html, Size: 2808 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] Only index.html is cloned in private repo clone recipe #yocto
  2020-10-07  8:29 Only index.html is cloned in private repo clone recipe #yocto Bel Hadj Salem Talel
@ 2020-10-07  8:34 ` Paul Barker
  2020-10-07  8:42   ` Bel Hadj Salem Talel
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Barker @ 2020-10-07  8:34 UTC (permalink / raw)
  To: Bel Hadj Salem Talel; +Cc: yocto

On Wed, 7 Oct 2020 at 09:29, Bel Hadj Salem Talel <bhstalel@gmail.com> wrote:
>
> Hello All,
>
> I have a private git repo which is in a local gitlab server.
> Here is the local repo domain: http://gitlab.tools.comp.local/comp/sense/sense_frontend
> I already saved the git credentials (username and password) , and I created this recipe:
>
> LICENSE = "CLOSED"
> SRCURL = "http://gitlab.tools.comp.local/comp/sense/sense_frontend"
> SRCBRANCH = "master"
> SRCPROTO = "https"
> # Define the source for this recipe
> SRC_URI += "${SRCURL};protocol=${SRCPROTO};branch=${SRCBRANCH}"
> SRC_URI[md5sum] = "1becf51a6312d09f0c1c22120efd499c"
> SRC_URI[sha256sum] = "142e3af77b6851b614d07012abce145ce2526b8d0d95e7a94cff62f0e6432d26"
>
> When I do do_fetch and do_unpack I only see the index.html file of the repo is downloaded.
> What is the problem ?
> How can I solve this?

SRC_URI should start with "git://" to do a git clone. The "protocol"
field can then be set to http, https or ssh if needed, I see you've
already got that set to https after expansion so you should just need
to change your SRCURL value.

Thanks,

-- 
Paul Barker
Konsulko Group

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Only index.html is cloned in private repo clone recipe #yocto
  2020-10-07  8:34 ` [yocto] " Paul Barker
@ 2020-10-07  8:42   ` Bel Hadj Salem Talel
  2020-10-08  8:37     ` [yocto] " Ross Burton
  0 siblings, 1 reply; 5+ messages in thread
From: Bel Hadj Salem Talel @ 2020-10-07  8:42 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

Hi,
Thanks for the quick reply ,
Actually I was wrong about https, I changed it to http and added: SRCURL = " git://gitlab.tools.comp.local/comp/sense/sense_frontend" ( http://gitlab.tools.comp.local/comp/sense/sense_frontend" )
instead of SRCURL = " http://gitlab.tools.comp.local/comp/sense/sense_frontend"

Now when I do_fetch:

############
ERROR: sense-web-1.0-r0 do_fetch:
Fetcher failure for URL: 'git://gitlab.tools. comp ( http://gitlab.tools.comp.local/comp/sense/sense_frontend" ).local/ comp ( http://gitlab.tools.comp.local/comp/sense/sense_frontend" ) /sense/sense_frontend;protocol=http;branch=master'.
Please set a valid SRCREV for url ['SRCREV_default_pn-sense-web', 'SRCREV_default', 'SRCREV_pn-sense-web', 'SRCREV']
(possible key names are git://gitlab.tools. comp ( http://gitlab.tools.comp.local/comp/sense/sense_frontend" ).local/ comp ( http://gitlab.tools.comp.local/comp/sense/sense_frontend" ) /sense/sense_frontend;protocol=http;branch=master, or use a ;rev=X URL parameter)
############

I'm trying to understand the issue for my Yocto knowledge.
Can you help me understand this or fix the issue ?

Thanks alot for the help.

[-- Attachment #2: Type: text/html, Size: 1572 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] Only index.html is cloned in private repo clone recipe #yocto
  2020-10-07  8:42   ` Bel Hadj Salem Talel
@ 2020-10-08  8:37     ` Ross Burton
  2020-10-08 11:48       ` Bel Hadj Salem Talel
  0 siblings, 1 reply; 5+ messages in thread
From: Ross Burton @ 2020-10-08  8:37 UTC (permalink / raw)
  To: Bel Hadj Salem Talel; +Cc: yocto

On Wed, 7 Oct 2020 at 09:43, Bel Hadj Salem Talel <bhstalel@gmail.com> wrote:
> Thanks for the quick reply ,
> Actually I was wrong about https, I changed it to http and added: SRCURL = "git://gitlab.tools.comp.local/comp/sense/sense_frontend"
> instead of SRCURL = "http://gitlab.tools.comp.local/comp/sense/sense_frontend"
>
> Now when I do_fetch:
>
> ############
> ERROR: sense-web-1.0-r0 do_fetch:
> Fetcher failure for URL: 'git://gitlab.tools.comp.local/comp/sense/sense_frontend;protocol=http;branch=master'.
> Please set a valid SRCREV for url ['SRCREV_default_pn-sense-web', 'SRCREV_default', 'SRCREV_pn-sense-web', 'SRCREV']
> (possible key names are git://gitlab.tools.comp.local/comp/sense/sense_frontend;protocol=http;branch=master, or use a ;rev=X URL parameter)
> ############
>
> I'm trying to understand the issue for my Yocto knowledge.
> Can you help me understand this or fix the issue ?

The git fetcher needs to know what SHA to unpack.  You haven't set
SRCREV, you can either set it to the specific SHA or to "${AUTOREV}"
if you want it to refetch every time it builds.

Note that the [md5sum] and [sha256sum] flags are only needed for HTTP
downloads, so you can delete these lines.

Ross

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Only index.html is cloned in private repo clone recipe #yocto
  2020-10-08  8:37     ` [yocto] " Ross Burton
@ 2020-10-08 11:48       ` Bel Hadj Salem Talel
  0 siblings, 0 replies; 5+ messages in thread
From: Bel Hadj Salem Talel @ 2020-10-08 11:48 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Thanks for the support,
Here what I tried and it worked:

> 
> 
> 
> 
> *BRANCH = "master"*
> *PROTOCOL = "http"
> * *SRCREPO = "gitlab.tools.comp.local/comp/sense/sense_frontend.git"
> * *SRC_URI = "git://${* **SRCREPO}* ; protocol=${PROTOCOL};
> branch=${BRANCH}"
> * *SRCREV = "${AUTOREV}"*
> 
> 

And now everything is fetched and then unpacked into ${S}/git correctly.

Thanks, Talel

[-- Attachment #2: Type: text/html, Size: 544 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-08 11:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07  8:29 Only index.html is cloned in private repo clone recipe #yocto Bel Hadj Salem Talel
2020-10-07  8:34 ` [yocto] " Paul Barker
2020-10-07  8:42   ` Bel Hadj Salem Talel
2020-10-08  8:37     ` [yocto] " Ross Burton
2020-10-08 11:48       ` Bel Hadj Salem Talel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.