Skip to content

fix: remove the root tools-tag package conflict - #561

Merged
vuanhphung merged 2 commits into
mainfrom
fix/issue-162-tools-package
Nov 16, 2026
Merged

vuanhphung merged 2 commits into
mainfrom
fix/issue-162-tools-package

Conversation

@vuanhphung

@vuanhphung vuanhphung commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

tools.go declared a second package at the module root, breaking consumers that enable the tools tag. Replace the placeholder import with a Go tool directive, keeping gotestsum v1.8.2, golangci-lint v2.15.0, and existing Makefile/CI commands unchanged. This removes the placeholder rather than moving it to internal/tools; consumer dependency versions stay identical and dependency tool directives are not inherited. Preserve Dependabot updates for the now-indirect gotestsum requirement with a targeted allow rule, retaining the existing direct-dependency policy.

The independent package-clause regression ignores build tags, matching Gazelle's package discovery, and CI now runs tools-tag vet/build. The regression, tagged builds, and fresh consumer build fail on main and pass here. Vendored builds and Gazelle v0.47.0 also pass. make test reports 1,510 tests (8 credential skips), lint reports 0 issues, and race, tools, coverage, and build checks pass. Separate live Thrift/kernel smoke tests pass in 0.61s/0.42s on the shared warehouse; runtime performance is unaffected because no runtime code changes.

Baseline exceptions reproduced on main: three generated Thrift files are not gofmt-clean, tidy removes existing unused/security pins, and the kernel suite's TestKernelCloudFetchDisabledPreservesUnsupportedServerError fails against bindings v1.4.0. With that existing test excluded, combined tools+kernel checks have 1,606 passes and 44 credential/platform skips. The new test is formatted, all selected module versions are unchanged, and an isolated tidy retains the tool.

Cross-driver state

Not applicable to other drivers: this is Go-specific module layout.

Driver State Notes
Go Tools-tag conflict → Supported One root package; gotestsum declared via tool, version pinned by require

An alternative fix is open in #452. This independently written change additionally checks tag-agnostic package clauses, consumer/vendored builds, and tools-tag CI.

Adversarial review: converged in round 1 with no high findings; fixed the Dependabot regression and wording nits, retaining the issue-scoped regression guard.

Fixes #162

This pull request and its description were written by Isaac.

vuanhphung and others added 2 commits November 14, 2026 03:10
Pin gotestsum with a Go tool directive instead of a second root package. Guard package declarations and tools-tag builds without changing tool versions or consumer dependencies.

Signed-off-by: Vu Anh Phung <[email protected]>
Co-authored-by: Isaac <[email protected]>
Allow the tool-only indirect requirement without broadening other dependency updates. Clarify the tool version pin and the tools-tag Gazelle trigger.

Signed-off-by: Vu Anh Phung <[email protected]>
Co-authored-by: Isaac <[email protected]>
@vuanhphung
vuanhphung marked this pull request as ready for review November 14, 2026 03:28

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@vuanhphung
vuanhphung enabled auto-merge November 16, 2026 03:50
@vuanhphung
vuanhphung added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 16, 2026
@vuanhphung
vuanhphung enabled auto-merge November 16, 2026 05:31
@vuanhphung
vuanhphung added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit b3b8a2c Nov 16, 2026
16 checks passed
@vuanhphung
vuanhphung deleted the fix/issue-162-tools-package branch November 16, 2026 05:44
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.

Tools.go causes package conflict

1 participant