Skip to content

Conversation

@fank
Copy link
Member

@fank fank commented Jul 3, 2025

Summary

This PR fixes the issue where the update script was polluting the README with too many duplicate and outdated tags.

Problem

The current update.sh script lists ALL versions from buildinfo.json in the README, resulting in:

  • 60+ lines of tags
  • Multiple duplicate major.minor version tags (e.g., 2.0 appearing on many lines)
  • Old stable tags that are no longer relevant

Solution

Modified the tag generation logic in update.sh to:

  1. Show only the latest experimental version with its tags
  2. Show only the current stable version with its tags
  3. Fixed the jq query to properly detect stable version using index() instead of contains()
  4. Removed the logic that was creating duplicate entries for each version

Result

Before: 60+ lines of tags with many duplicates
After: 2 clean lines showing only the most relevant tags:

* `latest, 2.0.58`
* `2, 2.0, 2.0.55, stable, stable-2.0.55`

This makes the README much cleaner and easier to read while still providing all the essential tag information users need.

Testing

  • Tested the tag generation logic separately to ensure it produces the correct output
  • Verified that the script correctly identifies the latest and stable versions
  • Confirmed the README is updated with the new clean format

fank added 2 commits July 3, 2025 19:41
- Modified update.sh to only show the latest and stable versions
- Removed duplicate major.minor version tags
- Changed from listing all versions to showing only the most relevant tags
- Fixed jq query to properly detect stable version using index() instead of contains()

This significantly reduces README pollution by showing only:
- The latest experimental version with its tags
- The current stable version with its tags
- One entry per major.minor version for older releases (removed from this commit)

Before: 60+ lines of tags with many duplicates
After: 2 lines showing only latest and stable versions
- Changed from pipeline to process substitution to avoid SC2030/SC2031 warnings
- Variables modified in the while loop are now properly preserved
- This ensures readme_tags modifications are not lost in subshells
@fank fank merged commit 50f04fb into master Jul 3, 2025
2 checks passed
@fank fank deleted the fix-readme-tag-pollution branch July 3, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants