#95 RFE: Importing packages from arbitrary (remote) dist-git instance
Closed 6 years ago Opened 6 years ago by praiskup.

For getting only the sources from dist-git we are fine with those pieces of information:

anongiturl = git://<HOST_GIT>/<TEMPLATE_URI_GIT>
lookaside = https://<HOST_CACHE>/<TEMPLATE_URI_CACHE>

With those two links, we can successfully import package from any remote dist-git into our dist-git. For convenience, it would be super cool if we had commandline tooling like:

# build against Copr's dist-git (default)
copr dist-git-build --module @copr/copr/copr-frontend --revision a12daf

# build against Fedora's development Copr
copr dist-git-build --flavor dev --module @copr/copr/copr-frontend --revision a12daf

# custom build against any dist-git
copr dist-git-build --module blah/foo --revision something --lookaside https://example.com/repo/pkgs --cloneurl git://.../%(module)s

# build against fedora's or mageia dist-git (configurable flavors, aka mapping from flavor
# to 'anongiturl'/'lookaside' pairs should be on **dist-git** side).
copr dist-git-build --flavor fedora --module kernel --revision master
copr dist-git-build --flavor mageia --module blah --revision master

This is now possible with SCM source type.

Thank you for the suggestion

I left out one thing...if we want to add support for additional DistGit except copr-dist-git and the Fedora one (which is default config), we need to put additional configuration into copr-rpmbuild's main.ini file. Given that deployment of DistGit's is rather limited, this should be sufficient. We could make the implementation more generic to to provide default behavior if an "unknown" DistGit instance is encountered.

Metadata Update from @clime:
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata