mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
Floci's Java package moves from io.github.hectorvent.floci to io.floci.aws, the convention the other emulators already use. The rename lands as one mechanical cut, prepared by smaller PRs, and this is the tool for both. tools/rename/rename_package.py report counts every reference to the old package by where it sits: package and import lines, inline names in code, strings, comments, non-Java files, and anything the cut would not rewrite. Each prep PR can show its count going down. apply performs the cut in the two commits it lands as: --moves-only renames the trees with git mv so every file is a 100% rename, and --rewrite-only rewrites the references, including the Maven groupId and the native-image directory. The artifactId stays floci. CHANGELOG.md and the tool itself are left alone. It reuses code_text from tools/partition/partition_literals.py, so comments and strings are read the way the partition gate reads them. make rename-test runs its tests in the Partition Literals workflow, so a change to that shared lexer cannot break the tool silently. A dry run on main moved 5,966 files and rewrote 26,016 lines with no old name left outside CHANGELOG.md; main and tests compile, and 245 focused tests pass. Checkstyle then fails only in the 357 files whose suppression paths start with /floci/, which a follow-up makes package-independent. Signed-off-by: Hector Ventura <hectorvent@gmail.com>