Bug 12752

Summary: Check that patches don't have a github /archive/ URL
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Ross Burton <ross.burton>
Component: Patchtest TestsuiteAssignee: Tim Orling <tim.orling>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: paul, randy.macleod, tim.orling, twoerner
Version: unspecified   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2018-05-16 03:55:40 UTC
We shouldn't be using github /archive/ URLs in recipes because the resulting tarball isn't reliable.

For example https://github.com/madler/pigz/archive/v1.2.tar.gz

Vague pseudo-expression to match is https?://github.com/*/*/archive/*

Patchtest should check for this and emit an error.
Comment 1 Trevor Woerner 2018-05-16 14:18:05 UTC
or:
    grep -r -l -E github\\.com/.*/archive/ *
Comment 2 Randy MacLeod 2020-03-26 17:26:14 UTC
Paul, would you like to add this check?