fix(airflow_versions): semver ordering for astro-agent image selection by feluelle · Pull Request #2053 · astronomer/astro-cli

@feluelle

@feluelle

Prefer newer astro-agent when runtime and Python match by comparing Python and agent versions with golang.org/x/mod/semver (with MAJOR.MINOR normalized to MAJOR.MINOR.0). Astro runtime in tags still uses CompareRuntimeVersions.

Add tests for semver tie-breaks (e.g. 3.10 vs 3.9, 1.3.10 vs 1.3.9).