Bug 2108401

Summary: copr cannot build from dist-git if sources file is missing
Product: [Community] Copr Reporter: Michel Lind <michel>
Component: backendAssignee: Pavel Raiskup <praiskup>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-16 13:06:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michel Lind 2022-07-19 02:16:09 UTC
Description of problem:
COPR cannot build a package from dist-git if the repository doesn't contain a sources file.

e.g. https://copr.fedorainfracloud.org/coprs/salimma/folly-testing/build/4642044/

Koji handles such repositories fine: https://koji.fedoraproject.org/koji/buildinfo?buildID=2004021

Version-Release number of selected component (if applicable):
Unsure

How reproducible:
Always

Steps to Reproduce:
1. Rebuild folly-rpm-macros (either https://src.fedoraproject.org/fork/salimma/rpms/folly-rpm-macros/tree/563fc852f58405f1bb2638a7988914f4616d1373 or https://src.fedoraproject.org/rpms/folly-rpm-macros/c/5b104bd19b63766ebeee01caf7c03c553e56e729?branch=rawhide)

Actual results:
Build fails:

ERROR: sources file not found

Expected results:
Build succeeds just like on Koji

Additional info:

Comment 1 Pavel Raiskup 2022-07-19 06:59:09 UTC
Thank you for the report!
https://bugzilla.redhat.com/show_bug.cgi?id=2108401

Comment 2 Pavel Raiskup 2022-07-19 06:59:51 UTC
I meant this: https://pagure.io/copr/copr/pull-request/2252

Comment 3 Pavel Raiskup 2022-08-16 13:06:46 UTC
This is already for some time in production.
Thank you again for the report!