> On 05/08/2024 10:38 PM CEST Tom Hughes via devel 
> <devel@lists.fedoraproject.org> wrote:
> 
>  
> On 08/05/2024 21:36, Kenneth Goldman wrote:
> 
> > Is it possible for a .spec file to clone a github.com repo rather than
> > download a tarball?  Can someone link to a working example?
> 
> No, but github can give you a tar ball for any ref you want so why
> would you need/want to?
> 

I have a case were upstream excludes the test suite from the export [1].
But I want the tests to be part of the package build to validate that 
everything is fine.
So this requires a bit of local git clone and create an own archive file.
I can't just grab the archive from the GitHub release in that case.

So that's a use-case were I could think of why git clone defined in a spec file 
would be handy.

Dom


[1] https://github.com/guzzle/guzzle/blob/7.8/.gitattributes


--
The Wombelix Post
https://dominik.wombacher.cc
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to