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

Command to create new upstream tarball #14

Open
aviau opened this issue Aug 30, 2015 · 14 comments
Open

Command to create new upstream tarball #14

aviau opened this issue Aug 30, 2015 · 14 comments

Comments

@aviau
Copy link
Member

aviau commented Aug 30, 2015

Correct me if this is outside the scope of the project, but I would like a command to create a new tarball. That would mean running only the makeUpstreamSourceTarball function.

So that I can do something like this:

dh-make-golang <make-tarball-command>
gbp import-orig ../<tarball>
@paultag
Copy link
Member

paultag commented Aug 30, 2015

#8 for a related issue -- also, my patches to move the Import path to the control header makes this easier too --

Not sure where that should live; perhaps an importable module under dh-make-golang, or perhaps a new repo? Thoughts, @stapelberg ?

@aviau
Copy link
Member Author

aviau commented Aug 30, 2015

If there is a patch to uscan (as mentioned in #8), there would be no need for this feature. dh-make-golang could actually use uscan to download the tarballs when possible.

@aviau
Copy link
Member Author

aviau commented Dec 29, 2017

#77 will make it easy to add new commands.

I am willing to open a PR that adds a command for this.

$ dh-make-golang tarball <goimportpath>
$ gbp import-orig ../<tarball>

@anthonyfok anthonyfok changed the title Commant to create new upstream tarball Command to create new upstream tarball Jun 24, 2018
@suntong
Copy link

suntong commented Jul 12, 2018

Good idea, @aviau, are you still planning to do it?

@aviau
Copy link
Member Author

aviau commented Jul 13, 2018

I am not putting any time on this feature right now, so please feel free to do it yourself.

@suntong
Copy link

suntong commented Jul 18, 2018

I might not be capable of doing that, but I've got an idea for an easier start for me.

I'm thinking to add a new --type so that people can use dh-make-golang to initial a plain Debian git repo into three branches. Would such proposal (and change) be welcome in dh-make-golang? Provided so, what should the new type be called? none-go, none, debian, plain, or something else?

CC: @stapelberg

Thx

@stapelberg
Copy link
Collaborator

I’m not sure I fully understand yet. Can you explain what the individual types would differ from each other please?

@suntong
Copy link

suntong commented Jul 18, 2018

Oh, there'll be only one type added, for dh-make-golang to initial a plain Debian git repo into three branches.

As for "none-go, none, debian, plain" etc, that was me proposing a proper name for the added type.

@stapelberg
Copy link
Collaborator

Sorry, I still don’t quite follow. dh-make-golang currently initializes a git repository to be used with git-buildpackage. What change exactly are you suggesting? What do you mean when you say “plain Debian git repo”?

@suntong
Copy link

suntong commented Jul 18, 2018

Oh, now I know what you mean, sorry, here it goes,

dh-make-golang currently initializes a git repository to be used with git-buildpackage, but it is only meant for go packages. I'm thinking to add a new --type so that people can use it to initial a git repository from a normal none-go Debian git repo, into three branches.

@stapelberg
Copy link
Collaborator

For that purpose, people should use the more general dh-make instead: https://manpages.debian.org/stretch/dh-make/dh_make.1.en.html :)

@suntong
Copy link

suntong commented Jul 18, 2018

thanks for the link. I took a look, so...

does dh_make support initializes the git repository with three branches?

@stapelberg
Copy link
Collaborator

I’m not entirely sure if there’s an option for that, but dh_make is where you should contribute the feature, if it’s not yet implemented

@suntong
Copy link

suntong commented Jul 18, 2018

OK. got you.

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

4 participants