Re: how to handle source code from github

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2017-06-28 20:54 GMT+02:00 Alexander Ploumistos <alex.ploumistos@xxxxxxxxx>:
>
> Hello and sorry for reviving an old thread, but it was relevant.
>
> Has github removed the capability to name the tarball whatever I
> choose, or could I be doing something wrong?
>
> I have tried downloading tarballs from 4 unrelated repositories using:
> https://github.com/OWNER/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
> https://github.com/OWNER/%{name}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
> https://github.com/OWNER/%{name}/archive/%{shortcommit0}/%{name}-%{shortcommit0}.tar.gz
>
> and even:
> https://github.com/OWNER/%{name}/archive/%{commit0}/foo.tar.gz
>
> but I always end up with a %{name}-%{commit0}.tar.gz tarball.

How are you using those links to download the tarball? As far as I
know if you download through a browser, it will always rename the
tarball to %{name}-%{commit0}, but if you download with wget or curl
[0], you should get the tarball name you chose. Note however that the
folder name within the tarball will always be %{name}-%{commit0}, so
the interest of naming the tarball itself differently is limited.

[0] e.g.: wget https://github.com/godotengine/godot/archive/9e54e1f/godot-9e54e1f.tar.gz
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux