Skip to content

Travis: "LibGit2Sharp.NotFoundException: object not found - no match for id ({id})" #174

@qmfrederik

Description

@qmfrederik

I just enabled NB.GV for a repository which uses Travis, and builds started failing with:

The "Nerdbank.GitVersioning.Tasks.GetBuildVersion" task failed unexpectedly. 
LibGit2Sharp.NotFoundException: object not found - no match for id (f7c0aa34d3067615717c1d2eeee22859461d4e24) 
    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
    at LibGit2Sharp.Core.Proxy.git_revwalk_next(RevWalkerHandle walker)
    at LibGit2Sharp.CommitLog.CommitEnumerator.MoveNext()
    at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
    at Nerdbank.GitVersioning.VersionOracle..ctor(String projectDirectory, Repository repo, ICloudBuild cloudBuild, Nullable`1 overrideBuildNumberOffset, String projectPathRelativeToGitRepoRoot) 
    at Nerdbank.GitVersioning.VersionOracle.Create(String projectDirectory, String gitRepoDirectory, ICloudBuild cloudBuild, Nullable`1 overrideBuildNumberOffset, String projectPathRelativeToGitRepoRoot) 
    at Nerdbank.GitVersioning.Tasks.GetBuildVersion.ExecuteInner()

See https://travis-ci.org/kubernetes-client/csharp/jobs/371967939 for an example.

Any idea what's going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions