Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a git archive method #219

Open
pini-edf opened this issue Mar 21, 2019 · 1 comment
Open

Please add a git archive method #219

pini-edf opened this issue Mar 21, 2019 · 1 comment

Comments

@pini-edf
Copy link

Hi,
We use jenkins-debian-glue at $work, but because we handle some very large source packages (up to 25 Go) we don't want jenkins to fetch every ref. This could lead to several hundred of Go transiting through the network, while with only need a few Go to build the source package.
How about introducing a new git backend with these 2 parameters ?

  • repo URI
  • refspec to build the source package from
    This backend would first 'git archive' the given refspec only, then build the source package using dpkg-source instead of gbp.
    Thanks in advance.
@mika
Copy link
Owner

mika commented Mar 21, 2019

Hi! I'm definitely open for such ideas, I have a similar situation at a customer of mine, who has tons of gerrit reviews in many repositories, we use a customized *-source there, using command lines like git fetch --tags --progress "${GIT_URL}" +"refs/changes/${git_ref_id}:refs/remotes/origin/${git_ref_id}" to get the relevant data.

Note: the dpkg-source approach will probably only for native packages (https://www.debian.org/doc/manuals/maint-guide/first.en.html#non-native-dh-make), otherwise the orig.tar.* files will be missing (that's something gbp can take care of).

If you're interested in working on a PR I'd be more than happy to provide feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants