Create new scripts for bumping versions and aliases#3355
Open
Create new scripts for bumping versions and aliases#3355
Conversation
Generated-by: Opus 4.6 Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
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.
Context
Coming from #3289 (comment)
Answering @scpeters comment on "if we prefer 10 lines of bash or scripts", this is my personal take nowadays: given how fast we can use AI to produce, review and evolve trivial helper tools it is now my feeling that they are usually more complete, less error-prone in corner cases and not difficult to test or manually review. So I'm inclined for produce and use them. This does not mean that we can fall into errors, over-confidence or black-box-quick-testing but given the results that I see today, I think that worth the effort to give this approach a try.
Technical changes in the PR
This pull request introduces a new unified tool for managing Homebrew aliases in the Gazebo tap. It adds a Python script,
manage_aliases.py, along with documentation inscripts/README.md. The script automates the creation of versioned and collection-scoped aliases:New alias management tooling:
scripts/manage_aliases.py, a Python script providing two main subcommands:bump: Automatically creates next-major-version aliases for all discoveredgz-*andsdformat*libraries, supporting dry-run and targeted library selection. It also auto-discovers libraries and corrects broken or outdated symlinks.collection-aliases: Generates collection-scoped aliases for each dependency of a specified collection formula (e.g.,gz-jetty-cmake), with support for dry-run and automatic parsing of dependencies.Documentation:
manage_aliases.pytoscripts/README.md, including subcommand explanations, example invocations, and descriptions of key features.