[copybara] Zero out high churn 'repo_url' in .toml files (#8504)

This is a high churn change whenever `mostrobotpy` switches from
pointing to `release-2027` to `development-2027`. The value isn't used
by the bazel build scripts, so there is no reason to have a zero impact
change on ~11 files muddying up the synchronization diffs.

In the `allwpilib -> mostrobotpy` direction, we update [this
](https://github.com/robotpy/mostrobotpy/blob/main/rdev.toml) config
file and run
[this](https://github.com/robotpy/mostrobotpy/blob/main/rdev.sh) script
which updates it in that repo during.

I manually did this change in #8503, but this will do it automatically
in the future
This commit is contained in:
PJ Reiniger
2025-12-24 08:39:24 -05:00
committed by GitHub
parent 0349524f80
commit 419ef31e30

View File

@@ -74,12 +74,21 @@ def define_mostrobotpy_to_allwpilib():
transformations = []
rename_transforms = []
# "Zero Out" high churn values. These get replaced automatically in the
# allwpilib -> mostrobotpy direction
rename_transforms.append(core.replace(
before = 'version = "${version}"',
after = 'version = "0.0.0"',
regex_groups = {"version": ".*"},
paths = glob(["**/*.toml"]),
))
rename_transforms.append(core.replace(
before = 'repo_url = "${repo_url}"',
after = 'repo_url = ""',
regex_groups = {"repo_url": ".*"},
paths = glob(["**/*.toml"]),
))
EXCLUDES = ["**/meson.build", "**/.gitignore", "**/requirements.txt", "**/.gittrack", "**/.gittrackexclude", "**/run_tests.py"]