[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh-make-golang - Could not create git repository



Although renaming the ~/.gbp.conf file solved the problem, I do want
to fix my ~/.gbp.conf file eventually, because there are so many
useful setting there. So,

Would anyone be so kind as to review my ~/.gbp.conf file please?
https://gist.github.com/suntong/7595f85805b58bc618a2c4af678da195

thanks!


On Sun, Nov 25, 2018 at 9:10 AM Tong Sun <suntong001@gmail.com> wrote:
>
> Thank you Michael, It's working now, as per your instructions.
> My gbp-buildpackage was version 0.9.9 previously. Now it is 0.9.10+nmu1.
>
> Many thanks
>
> On Sun, Nov 25, 2018 at 4:27 AM Michael Stapelberg
> <stapelberg@debian.org> wrote:
> >
> > Do you have a ~/.gbp.conf? If yes, can you rename the file and try again?
> >
> > Which version of gbp-buildpackage do you use?
> >
> > On Sun, Nov 25, 2018 at 5:48 AM Tong Sun <suntong001@gmail.com> wrote:
> >>
> >> There isn't much prerequisite to use dh-make-golang, right?
> >>
> >> I gave it a try today and this is what I get:
> >>
> >> $ dh-make-golang make github.com/danverbraganza/varcaser/varcaser
> >> 2018/11/24 23:21:50 Continuing with repository root
> >> "github.com/danverbraganza/varcaser" instead of specified import path
> >> "github.com/danverbraganza/varcaser/varcaser" (repositories are the
> >> unit of packaging in Debian)
> >> 2018/11/24 23:21:50 Downloading "github.com/danverbraganza/varcaser/..."
> >> go get: 15.44 KiB2018/11/24 23:21:50 Determining upstream version number
> >> 2018/11/24 23:21:50 Package version is "0.0~git20151108.ce61ec4"
> >> 2018/11/24 23:21:50 Determining dependencies
> >> gbp:error: Did not find debian/changelog or debian/source. Is this a
> >> Debian package?
> >> gbp:error: Postimport-hook 'gbp dch -S -a --debian-branch=$GBP_BRANCH
> >> && git commit --amend -C@{0} debian/changelog' failed: it exited with
> >> 1
> >> gbp:error: Import of
> >> /home/u/l/dg/golang-github-danverbraganza-varcaser_0.0~git20151108.ce61ec4.orig.tar.xz
> >> failed: Postimport-hook 'gbp dch -S -a --debian-branch=$GBP_BRANCH &&
> >> git commit --amend -C@{0} debian/changelog' failed: it exited with 1
> >> gbp:error: Error detected, Will roll back changes.
> >> gbp:error: Automatic rollback failed [('master', 'branch', 'delete',
> >> None, GitRepositoryError("Can't delete the branch you're on",))]
> >> gbp:error: Clean up manually and please report a bug: [('master',
> >> 'branch', 'delete', None, GitRepositoryError("Can't delete the branch
> >> you're on",))]
> >> 2018/11/24 23:21:52 Could not create git repository: exit status 1
> >>
> >> Look at all those "gbp:error", and the last error line. I didn't get
> >> any of these when I tried the very same command last time, which is
> >> about half a year ago.
> >> And this is after a fresh
> >> go get -u github.com/Debian/dh-make-golang
> >> done today.
> >>
> >> What have changed since I tried it last time (when it ran OK)?
> >> How to fix the above problems?
> >>
> >> Thx
> >>
> >
> >
> > --
> > Best regards,
> > Michael


Reply to: