From: alexzoyv@gmail.com
To: yocto@lists.yoctoproject.org
Subject: Re: Http access token fetching with gitsm fetcher
Date: Fri, 20 Oct 2023 07:32:54 -0700 [thread overview]
Message-ID: <19195.1697812374702702885@lists.yoctoproject.org> (raw)
In-Reply-To: <CAMSfU+4EP2UnoNUo7Fycsp-xPe0VcUOz3Wnwzatvbt06iC11Eg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]
Adrian, Yoann,
Thank you very much and sorry for bringing it up.
.netrc does fix my problem.
Alex
On Fri, Oct 20, 2023 at 04:43 PM, Yoann Congal wrote:
>
> Hi,
>
> Le ven. 20 oct. 2023 à 15:32, Adrian Freihofer
> <adrian.freihofer@gmail.com> a écrit :
>
>> Did you already consider to write the credentials in a .netrc file?
>>
>> Regards
>> Adrian
>>
>> <alexzoyv@gmail.com> schrieb am Fr., 20. Okt. 2023, 13:55:
>>
>>>
>>> Greetings!
>>> I try to use gitsm fetcher to fetch bitbucket repository with read-only
>>> https access token. SRC_URI looks like this
>>>
>>> SRC_URI =
>>> "gitsm://******.git;protocol=https;branch=${BRANCH};user=azoykin:${TOKEN}"
>>>
>>>
>>> This recipe fetches parent repository, but is unable to fetch submodule,
>>> writing fatal: could not read Username for ' https://tps-git.topcon.com' :
>>> No such device or address in log.do_fetch
>>> It happens because url is passed to fetcher function already with user
>>> string. I suggest a patch to fix this issue
>>
>>
>
> I'm sorry but this is a known WONTFIX bug :
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=13550
> See : https://git.openembedded.org/bitbake/tree/lib/bb/fetch2/gitsm.py#n127
>
>
> The only supported way to do this (that I know of) is to use .netrc as
> Adrian suggested.
>
> Regards,
> --
> Yoann Congal
> Smile ECS - Tech expert
[-- Attachment #2: Type: text/html, Size: 1782 bytes --]
next prev parent reply other threads:[~2023-10-20 14:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-20 11:55 Http access token fetching with gitsm fetcher alexzoyv
2023-10-20 13:32 ` [yocto] " Adrian Freihofer
2023-10-20 13:43 ` Yoann CONGAL
2023-10-20 14:32 ` alexzoyv [this message]
2024-04-19 13:25 ` Altous, Salahaldeen
2024-04-19 13:44 ` Janne Kiiskila
2024-04-22 6:52 ` Altous, Salahaldeen
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=19195.1697812374702702885@lists.yoctoproject.org \
--to=alexzoyv@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/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