Re: Spec file using github repo - not tarball

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

 



On 21-05-2024 18:04, Dominik Wombacher wrote:
On 05/21/2024 5:54 PM CEST Tom Hughes via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

The automatic tar ball URLs on github just do a git archive and are
separate to uploaded release artifacts. Just use a URL like:

    https://github.com/OWNER/PROJECT/archive/REVISION/NAME.tar.gz

where tag can be any tag or head or commit hash. More here:

https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_commit_revision


I know that, but as shared, upstream has a .gitattributes [1] defined that sets export-ignore [2] for a majority of the repo content, including /tests/. They upload the same archive to the releases as they are generated by GitHub ad-hoc. So in both cases the files are missing and can't retrieved without a git clone.

Dom


[1] https://github.com/guzzle/guzzle/blob/7.8/.gitattributes
[2] https://git-scm.com/docs/gitattributes#_export_ignore

In that situation you should probably follow the instructions in the Packaging Guidelines regarding Troublesome URLs (second part) [3] and create additional sources manually.

[3] https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_troublesome_urls

-- Sandro
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [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