You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have some code that calls PlainCloneContext with a local .git dir as the URL. It works fine when I run it on my Macbook, and when I run it on my Linux desktop. And it worked fine in GitHub Actions in a recent version of my project. But it fails on my current feature branch, even though no relevant code has changed.
The project is modver, a package and command-line tool for helping your Go project to obey semantic versioning rules. In the function CompareGitWith, an older and a newer version of a Git repo are compared to each other; the cloning happens in the helper function gitSetuphere.
Here is the line in the TestGit unit test that calls CompareGitWith (via an intermediate call to CompareGit). Here is the GitHub Actions workflow that runs that test. And here you can see it working in a commit on the master branch from just a few weeks ago.
Take a look at the last several commits in that PR branch to see the various permutations of things I tried to fix this, to no avail. I am pretty baffled. Any help?
The text was updated successfully, but these errors were encountered:
[It's not a
fetch-depth
problem.]Hello! I have some code that calls
PlainCloneContext
with a local.git
dir as theURL
. It works fine when I run it on my Macbook, and when I run it on my Linux desktop. And it worked fine in GitHub Actions in a recent version of my project. But it fails on my current feature branch, even though no relevant code has changed.The project is modver, a package and command-line tool for helping your Go project to obey semantic versioning rules. In the function CompareGitWith, an older and a newer version of a Git repo are compared to each other; the cloning happens in the helper function
gitSetup
here.Here is the line in the
TestGit
unit test that callsCompareGitWith
(via an intermediate call toCompareGit
). Here is the GitHub Actions workflow that runs that test. And here you can see it working in a commit on themaster
branch from just a few weeks ago.But it's failing in this draft PR with an "object not found" error. Example.
Take a look at the last several commits in that PR branch to see the various permutations of things I tried to fix this, to no avail. I am pretty baffled. Any help?
The text was updated successfully, but these errors were encountered: