[release-23.0] build: move dev tools into per-tool Go modules (#20293)#20296
Conversation
|
Hello @arthurschreiber, there are conflicts in this backport. Please address them in order to merge this Pull Request. You can execute the snippet below to reset your branch and resolve the conflict manually. Make sure you replace |
Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
|
Resolved the cherry-pick conflicts in 23cad92. This branch diverges from main quite a bit, so the resolution adapts the upstream change to release-23.0's tooling — the guiding rule was: keep release-23.0's behavior, adopt module pinning only where this branch used floating versions. Kept release-23.0's mechanics:
Adopted per-tool modules, re-pinned to this branch's versions with
Verified locally: |
Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
| changed_pkgs=$(git diff --cached --name-only --diff-filter=ACM -- '*.go' \ | ||
| | xargs -n1 dirname \ | ||
| | sort -u \ | ||
| | while read -r dir; do | ||
| mod_dir=$dir | ||
| while [ "$mod_dir" != "." ] && [ ! -f "$mod_dir/go.mod" ]; do | ||
| mod_dir=$(dirname "$mod_dir") | ||
| done | ||
| if [ "$mod_dir" = "." ]; then | ||
| echo "$dir/..." | ||
| else | ||
| echo "skipping $dir (nested module $mod_dir)" >&2 | ||
| fi | ||
| done) |
Description
This is a backport of #20293