#14352·dagger

No git labels, and a warning on every call, in repositories with `extensions.worktreeConfig`

Author: blaugoldCreated Sep 26, 2026Updated Sep 27, 2026

What is the issue?

In a git repository whose .git/config sets extensions.worktreeConfig = true, every dagger command prints

WARN failed to open git repository err="core.repositoryformatversion does not support extension: worktreeconfig"

and the run carries none of the dagger.io/git.* labels (remote, ref, branch, tag, author, committer, title). WithGitLabels in engine/telemetry/labels.go returns early when git.PlainOpenWithOptions fails.

Tools that manage worktrees set extensions.worktreeConfig routinely; the Claude desktop app, for one, sets it on every repository it creates worktrees in. It applies to the main checkout and every worktree, since they share .git/config. For git itself the configuration is valid: worktreeConfig is one of the extensions allowed while core.repositoryformatversion is 0.

The cause is in go-git, which Dagger pins at github.com/go-git/go-git/v5 v5.19.0 (also on main). extensions() in repository_extensions.go lowercases extension names, but extensionsValidForV0 keys them in camelCase ("worktreeConfig"), so the lookup never matches: go-git/go-git#2156.

  • go-git v6 fixes it, but v6 exists only as prereleases so far (latest v6.0.0-alpha.5, 2026-07-29).
  • v5 is still affected (v5.19.2). The backport go-git/go-git#2171 is open; go-git/go-git#1982, go-git/go-git#2190 and go-git/go-git#2298 were closed without merging.

I would expect Dagger to label runs from such a repository like any other, and not to warn about a valid repository. That needs a go-git v5 release with the backport, or v6 once it is stable.

Dagger version

dagger v1.0.0-beta.14 (06660c3c) darwin/arm64

Steps to reproduce

bash
git init repro && cd repro
git commit --allow-empty -m init
git config extensions.worktreeConfig true
dagger core version

The warning appears. With git config --unset extensions.worktreeConfig it does not.

Log output

WARN failed to open git repository err="core.repositoryformatversion does not support extension: worktreeconfig"