Visitar URL original
fix: 🐞 No git labels, and a warning on every call, in repositories with `extensions.worktreeConfig` by xixi-box · Pull Request #15160 · dagger/dagger · GitHub
Skip to content

fix: 🐞 No git labels, and a warning on every call, in repositories with extensions.worktreeConfig - #15160

Open
xixi-box wants to merge 1 commit into
dagger:mainfrom
xixi-box:fix/issue-14352-835b0ef-84d64b4f
Open

xixi-box wants to merge 1 commit into
dagger:mainfrom
xixi-box:fix/issue-14352-835b0ef-84d64b4f

Conversation

@xixi-box

Copy link
Copy Markdown

Fixes #14352

Root cause: The pinned go-git v5 rejects the valid worktreeConfig extension, causing WithGitLabels to return before collecting Git metadata; the fallback filters only that extension in memory while preserving other validation.

Tests: go test ./engine/telemetry -run '^TestLoadGitLabelsWorktreeConfig$' -count=1 -v (fails on base; passes with this patch).
Regression coverage: engine/telemetry/labels_test.go.

AI assistance: Codex helped implement and test this change. oss-scout independently replayed the regression before opening this PR.

Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant