Skip to content

Conversation

@k1LoW
Copy link
Owner

@k1LoW k1LoW commented Oct 26, 2025

This pull request updates the way the tool checks Go version compatibility, especially in "lax" mode, to make the logic clearer and more accurate. The changes improve both the user documentation and the code, and expand the test coverage to ensure correct behavior.

Documentation and User Experience Improvements:

  • Updated the Go version compatibility table in README.md to show both "stable" and "oldstable" versions and clarify how checks behave in different modes.
  • Improved the help text for the --lax flag in cmd/root.go to better explain that errors only occur on the stable version, and oldstable or older versions are allowed.

Logic and Test Coverage Enhancements:

  • Refined the "lax" mode logic in mod/mod.go to only error if the go.mod directive matches the stable version, allowing oldstable or older versions.
  • Expanded test cases in mod/mod_test.go to cover more scenarios, including stable, oldstable, oldstable minor, and older versions in both strict and lax modes.

@k1LoW k1LoW self-assigned this Oct 26, 2025
@k1LoW k1LoW merged commit 62e4978 into main Oct 26, 2025
3 checks passed
@k1LoW k1LoW deleted the fix-lax branch October 26, 2025 14:09
@github-actions github-actions bot mentioned this pull request Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants