Skip to content

refactor: simplify Go version logic with centralized VersionManager#223

Merged
kevincobain2000 merged 2 commits intomasterfrom
feature/sem
Oct 3, 2025
Merged

refactor: simplify Go version logic with centralized VersionManager#223
kevincobain2000 merged 2 commits intomasterfrom
feature/sem

Conversation

@juev
Copy link
Collaborator

@juev juev commented Sep 30, 2025

The version management logic has been simplified.

  • Extract complex version handling logic into dedicated VersionManager struct
  • Replace 100+ line judgeVersion function with focused, testable methods
  • Use consistent semver library parsing for better reliability
  • Eliminate recursive calls and nested conditions
  • Improve error handling with proper validation
  • Add comprehensive version resolution methods for different patterns
  • Maintain backward compatibility with existing API
  • Update test expectations to match corrected version resolution
  • Clean up unused imports and fix compilation warnings

- Extract complex version handling logic into dedicated VersionManager struct
- Replace 100+ line judgeVersion function with focused, testable methods
- Use consistent semver library parsing for better reliability
- Eliminate recursive calls and nested conditions
- Improve error handling with proper validation
- Add comprehensive version resolution methods for different patterns
- Maintain backward compatibility with existing API
- Update test expectations to match corrected version resolution
- Clean up unused imports and fix compilation warnings
@juev
Copy link
Collaborator Author

juev commented Sep 30, 2025

@kevincobain2000 whats wrong with windows checks?

@juev juev marked this pull request as ready for review September 30, 2025 08:30
@kevincobain2000
Copy link
Owner

@kevincobain2000 whats wrong with windows checks?

Probably action issue and not gobrew issue

@kevincobain2000 kevincobain2000 merged commit a79342c into master Oct 3, 2025
8 of 12 checks passed
@kevincobain2000 kevincobain2000 deleted the feature/sem branch October 3, 2025 10:31
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