Repository navigation
chore(bazel): fold tools/ into bazel/ - #1200
Merged
Merged
Conversation
bazel/ already holds the rule definitions these tools serve (precedent:
bazel/protodoc/ is a Go tool plus defs.bzl, the same shape as buildid).
Pure move: tools/{buildid,chartconfig,cosign,oras} -> bazel/<same>, and
every //tools/... label, bazel-bin/tools/... path and aethermesh.dev/tools
import path rewritten to its bazel/ equivalent. tools/ no longer exists.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mechanical restructure (maintainer decision 2026-10-04): fold
tools/intobazel/, which already holds the rule definitions these tools serve (precedent:bazel/protodoc/is a Go tool plusdefs.bzl, the same shape asbuildid). No behaviour change;tools/no longer exists.Moves (
git mv, history follows)tools/buildid/bazel/buildid/defs.bzlrule, Go tool,release_build_idstools/chartconfig/bazel/chartconfig/tools/cosign/bazel/cosign/verify_image_signatures,version_testtools/oras/bazel/oras/config_settings,oras_bin,version_testReferences updated
Rewrite:
//tools/{buildid,chartconfig,cosign,oras}to//bazel/<same>,bazel-bin/tools/buildidtobazel-bin/bazel/buildid,aethermesh.dev/tools/toaethermesh.dev/bazel/.toolsandbazelare the same length, so no doc paragraph needed rewrapping. Counts are matching lines per file.proxy-release.yml,publish-verify.yaml,publish.yaml,quay-smoke.yaml).bzl/.sh(self-labels,load(), Goimportpath)bazel/helm/defs.bzl,bazel/img/go_multi_arch_image.bzl,scripts/BUILD.bazelvisibility,MODULE.bazelcomments,proxy/.bazelrccomment)quay-smoke.sh,verify-image-signatures.sh)check-build-id)runbook.md,profiling-symbols.md,040_quay-registry.md,charts/README.md)There were no hits in
bazel/img/BUILD.bazel,CLAUDE.md,nogo.json, lint configs,.github/CODEOWNERS(a single* @bpalermo) or thecheck-registry-config.shallow-list. No Go package outside the moved ones importedaethermesh.dev/tools/....make gazellemade no changes after the rewrite.Proof
bazel build //...: passedbazel test //bazel/... //charts/...: 63/63 passed (buildid_test,chartconfig_test,cosign:version_test,oras:version_test,helm:chart_push_test,img:registry_test, all chart lint/template tests)make check-build-id(//bazel/buildid:release_build_ids, output atbazel-bin/bazel/buildid/release_build_ids.txt): passedbazel run //bazel/cosign -- version:GitVersion: v3.1.2bazel run //bazel/oras -- version:Version: 1.3.4bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: passedmake format-check: exit 0make gazelle: no diffscripts/check-registry-config.sh: exit 0.scripts/check-shell-lint.sh: exit 0 (58 scripts covered)actionlintv1.7.7 on the four touched workflows: cleanRemaining
tools/hits (git grep -n "tools/" -- ':!**/*.go',git grep -n '//tools'), none of them ours@bazel_tools//tools/.../@@bazel_tools//tools/...and thebazel_tools/tools/bash/runfiles/runfiles.bashrunfiles path: Bazel's built-in repo (MODULE.bazel,MODULE.bazel.lock,proxy/MODULE.bazel,bazel/helm/defs.bzl, the moved cosign/oras scripts and BUILD files).@io_k8s_client_go//tools/cache: client-go (agent/internal/cni/server,registry/internal/k8sBUILD files).golang.org/x/tools/.../@org_golang_x_tools//...: x/tools (BUILD.bazel,MODULE.bazel,scripts/go-deps-audit.sh,go.sum).android.googlesource.com/platform/tools/apksig: a lockfile mirror URL.docs/proposals/010_custom-proxy-workspace.md:112tools/: the proposed tree of the separateproxy/workspace, not aether's roottools/.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr