mirror of
https://github.com/go-gitea/git.git
synced 2026-07-19 14:33:37 -04:00
[GH-ISSUE #38] Test Failures in Debian Build Environment #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MTecknology on GitHub (Mar 23, 2017).
Original GitHub issue: https://github.com/go-gitea/git/issues/38
I'm attempting to build this package for inclusion in Debian so that we can get closer to Gitea being in the Debian repos. I'm, however, having some troubles. During the build, one of the tests fail. I haven't been able to figure out why and my Golang skills are a bit lacking so I was hoping I could reach out for some help here.
The build is running in a pretty typical pbuilder environment and generating this error:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
@MTecknology commented on GitHub (Mar 23, 2017):
There we go! If the tests are run from outside of this git repository, they will fail because these tests are meant to be run from within upstream's (this) git repository.
Could we extend these tests to creating a repository (in some tmp/ dir preferably), creating a static text file, adding it, getting the ID, and then pulling the object with that ID and making sure it still matches our expected input?
This would provide a much more complete test and should provide for more reliable testing. :)
@MTecknology commented on GitHub (Apr 17, 2017):
I would consider this more of a bug than a question...
@strk commented on GitHub (Apr 18, 2017):
I agree creating the git repo would be preferred. Can you give that a try @MTecknology ?
@bkcsoft commented on GitHub (Apr 19, 2017):
Maybe we should create it in
os.Getenv("TMPDIR") || os.Tempdir()? that way it ends up in/tmpunless you override it withTMPDIR=tmp/@mckaygerhard commented on GitHub (Sep 21, 2017):
how its the progress of this issue? i'm very interesting
Test Failures in Debian Build Environmentto [GH-ISSUE #38] Test Failures in Debian Build Environment