<div dir="ltr"><div dir="ltr">Hi again,<div><br></div><div>I have a workaround that I think is good enough but I would still like to get any pointers regarding it and if it would be possible for fetch to actually support downloading from private repo.</div><div><br></div><div><div>do_my_fetch() {</div><div> fetch --repo=${MY_REPO} \</div><div> --github-oauth-token=${GITHUB_TOKEN} \</div><div> --tag=${VERSION} \</div><div> --release-asset=asset.tar.gz ${WORKDIR} || {</div><div> bbfatal "Failed to download asset"</div><div> }</div><div>}</div><div>addtask my_fetch after do_fetch before do_unpack</div><div>do_my_fetch[depends] += "${PN}:do_prepare_recipe_sysroot"</div></div><div><br></div><div>In the recipe I have made sure to add fetch to DEPENDS so that the fetch will be part of the sysroot. So the reason for do_fetch not working was that it was not depending on do_prepare_recipe_sysroot and do_install was.</div><div><br></div><div>BR</div><div>Måns Zigher</div></div></div><br><div class="gmail_quote"><div dir="ltr">Den ons 10 okt. 2018 kl 13:18 skrev Måns Zigher <<a href="mailto:mans.zigher@gmail.com">mans.zigher@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I need to fetch a github release tar file. I think I have seen that it should be supported by default by setting the </div><div><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px"><br></span></div><div><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px">SRC_URI = "</span><a rel="nofollow" class="m_9100698632605001920external m_9100698632605001920gmail-free" href="https://github.com/DynamicDevices/bbexample/releases/download/v1.0/bbexample-$%7BPV%7D.tar.gz" style="font-family:monospace,Courier;font-size:12.7px;text-decoration-line:none;color:rgb(51,102,187);background:url("") 100% 50% no-repeat;padding-right:16px" target="_blank">https://github.com/DynamicDevices/bbexample/releases/download/v1.0/bbexample-${PV}.tar.gz</a><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px">"</span></div><div><br></div><div>The problem that I am facing is that the repo is private so I need to be able to specify a github token. Is this supported?</div><div><br></div><div>I have also tried specify my own do_fetch to my recipe and from there making use of <a href="https://github.com/gruntwork-io/fetch" target="_blank">https://github.com/gruntwork-io/fetch</a> but do_fetch cannot the binary. I have verified fetch binary is part of the package sysroot and I can call the fetch tool from do_install but that feels like a bad hack. Do you guys have any advice?</div><div><br></div><div>BR</div><div>Måns Zigher</div><div><div><br></div></div></div></div>
</blockquote></div>