<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 15, 2018 at 11:57 AM Anthony Fok wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Fri, Jun 15, 2018 at 7:04 AM, Tong Sun wrote:<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I pushed it up, but didn't find the `debian/sid` branch on <a href="http://salsa.debian.org" rel="noreferrer" target="_blank">salsa.debian.org</a>.<br>
> what I'm missing?<br>
><br>
> $ gbp push --verbose --debian-branch=debian/sid<br>
> gbp:debug: ['git', 'rev-parse', '--show-cdup']<br>
> gbp:debug: ['git', 'rev-parse', '--is-bare-repository']<br>
> gbp:debug: ['git', 'rev-parse', '--git-dir']<br>
> gbp:debug: ['git', 'symbolic-ref', 'HEAD']<br>
> gbp:debug: ['git', 'show-ref', 'refs/heads/debian/sid']<br>
> gbp:debug: ['git', 'config', 'branch.debian/sid.remote']<br>
> gbp:debug: ['git', 'tag', '-l', 'debian/0.0_git20151108.ce61ec4-1']<br>
> gbp:debug: ['git', 'tag', '-l', 'upstream/0.0_git20151108.ce61ec4']<br>
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',<br>
> 'upstream/0.0_git20151108.ce61ec4^{commit}']<br>
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',<br>
> 'refs/heads/upstream']<br>
> gbp:info: Pushing upstream/0.0_git20151108.ce61ec4 to origin<br>
> gbp:debug: ['git', 'push', 'origin', 'tag',<br>
> 'upstream/0.0_git20151108.ce61ec4']<br>
> gbp:info: Pushing refs/heads/upstream to origin:refs/heads/upstream<br>
> gbp:debug: ['git', 'push', 'origin',<br>
> 'refs/heads/upstream:refs/heads/upstream']<br>
<br>
Answer: There is no debian/sid branch.  As of today, dh-make-golang<br>
names it the "master" rather than "debian/sid", despite what the<br>
2017-11 Workflow Changes document at<br>
<a href="https://go-team.pages.debian.net/workflow-changes.html" rel="noreferrer" target="_blank">https://go-team.pages.debian.net/workflow-changes.html</a> (hidden)<br>
proposed.  There is a wish to "Adopt DEP-14 branch naming", i.e., to<br>
move from "master" to "debian/sid", and some Debian Go team members<br>
made that change manually, but most packages are still using the<br>
"master" branch.<br>
<br>
How do you tell?<br>
<br>
 1. Run "git branch -a" and see if there is a "debian/sid" branch.<br>
<br>
 2. Check debian/gbp.conf, and if it is using "debian/sid" branch, the lines<br>
<br>
        [DEFAULT]<br>
        ...<br>
        debian-branch = debian/sid<br>
<br>
        [buildpackage]<br>
        dist = DEP14<br>
<br>
     must be there.<br></blockquote><div><br></div><div>Oh, thanks, I followed that 2017-11 Workflow Changes document word for word and end up with a debian/gbp.conf of one single line:</div><div><br></div><div>$ cat debian/gbp.conf</div><div>[DEFAULT]</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, seeing how the "Workflow Changes" document is stagnant, and no<br>
one has discussed it further on this mailing list for over six months,<br>
and especially since dh-make-golang has not adopted DEP-14 branch<br>
naming yet, and there seems to be a promise of automatic migration in<br>
the future, well, I am not going to change my workflow now, so,<br>
personally, I am still using whatever dh-make-golang creates for me<br>
without renaming the default "master" branch or modifying<br>
debian/gbp.conf.<br>
<br>
My personal take on this: 多做多错,少做少错,不做不错。 (Yeah, I am lazy.)  The new<br>
workflow has its benefits and merits, of course, but I like the old<br>
workflow for its simplicity, and until dh-make-golang is actually<br>
updated for the new workflow (听其言而观其行), well, I am not budging.  But<br>
that's just me.  ;-)<br>
<br>
Regardless of your choice of either "master" or "debian/sid", my<br>
recommendation is to run the following commands:<br>
<br>
    git push -u --all<br>
    gbp push<br>
<br>
And all your branches ("master" or "debian/sid","upstream",<br>
"pristine-tar") will be pushed properly.  No need to push the branches<br>
one-by-one.<br>
<br>
"git push -u --all" needs to be run that one time only.  In the<br>
future, just "gbp push" is sufficient.<br>
<br>
"gbp push" does not seem to use --set-upstream-to to set the<br>
remote-tracking branch properly.<br>
Maybe I am missing something, but I ended up using "git push -u --all"<br>
to fix that.<br></blockquote><div><br></div><div> Yep, that fixes for me as well:</div><div><br></div><div><div>$ git push -u --all</div><div>Counting objects: 15, done.</div><div>Delta compression using up to 2 threads.</div><div>Compressing objects: 100% (10/10), done.</div><div>Writing objects: 100% (15/15), 3.27 KiB | 1.64 MiB/s, done.</div><div>Total 15 (delta 1), reused 0 (delta 0)</div><div>remote: </div><div>remote: To create a merge request for debian/sid, visit:</div><div>remote:   <a href="https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser/merge_requests/new?merge_request%5Bsource_branch%5D=debian%2Fsid">https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser/merge_requests/new?merge_request%5Bsource_branch%5D=debian%2Fsid</a></div><div>remote: </div><div>To salsa.debian.org:go-team/packages/golang-github-danverbraganza-varcaser.git</div><div> * [new branch]      debian/sid -> debian/sid</div><div>Branch 'upstream' set up to track remote branch 'upstream' from 'origin' by rebasing.</div><div>Branch 'debian/sid' set up to track remote branch 'debian/sid' from 'origin' by rebasing.</div><div><br></div></div><div><br></div><div>I'll fix the debian/gbp.conf as per your instruction next. </div><div><br></div><div>Having seen you remaining on the master branch instead of changing to debian/sid, maybe I should do too, to my next package. </div><div><br></div><div>But <b style="font-weight:normal" id="gmail-docs-internal-guid-f9a478ed-0504-cfad-f6a8-eef47e3e65e2"><span style="text-decoration:underline;font-size:11pt;font-family:Georgia;color:rgb(255,0,255);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;vertical-align:baseline;white-space:pre-wrap"><a href="https://go-team.pages.debian.net/workflow-changes.html#wf-2017-11-pristine-tar" style="text-decoration:none">dropping pristine-tar branches</a> </span></b>is still a well-accepted suggestion, right? </div><div><br></div><div><br></div><div>Sorry I rushed out my email early in the morning without too much thinking as I don't have much time coating it. </div><div>Thanks again for your help. </div><div><br></div><div><br></div><div><br></div></div></div>