Skip to content

Conversation

@angristan
Copy link
Owner

Summary

  • Fix version detection for Amazon Linux 2023.10+ (e.g., 2023.10.20260105)
  • Previous logic only checked single char, failing for double-digit minor versions

Fixes #1454

Copilot AI review requested due to automatic review settings January 13, 2026 20:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes version detection for Amazon Linux 2023 distributions with double-digit minor versions (e.g., 2023.10+). The previous character position-based parsing only checked a single character at position 19, causing version 2023.10 and higher to be incorrectly rejected.

Changes:

  • Replaced character position-based version parsing with regex pattern matching to properly extract multi-digit minor version numbers
  • Changed from cut -c 19 approach to BASH_REMATCH[1] for capturing the full minor version number

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@angristan angristan merged commit 42f3051 into master Jan 13, 2026
36 of 38 checks passed
@angristan angristan deleted the fix-amazon-linux-version-detection branch January 13, 2026 21:06
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.

Doesn't support actual amazon linux 2023.6+

2 participants