-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
Description
SDKMAN! does not list the latest Micronaut versions (Works on macOS, fails on Ubuntu Docker container)
Description
I noticed that SDKMAN! is not showing the latest versions of Micronaut when running sdk list micronaut. The most recent versions available on the Micronaut Releases page are not appearing in the SDKMAN! registry. Interestingly, this issue occurs when running inside a Docker container based on Ubuntu, but works fine when running on macOS.
Steps to Reproduce
✅ Works on macOS
- Run the following command on macOS terminal:
sdk list micronaut
- The latest versions appear as expected.
❌ Fails in an Ubuntu-based Docker container
- Create a Docker container using Ubuntu as the base image:
FROM ubuntu:22.04 RUN apt-get update && apt-get install -y curl unzip zip git zsh RUN curl -s "https://get.sdkman.io" | bash
- Start the container and run:
sdk list micronaut
- The output does not include the latest Micronaut versions.
Expected Behavior
SDKMAN! should display the latest available versions of Micronaut regardless of the operating system.
Actual Behavior
- When running on macOS,
sdk list micronautcorrectly displays the latest Micronaut versions. - When running inside a Docker container (Ubuntu-based), only older versions appear, and recent releases are missing.
================================================================================
Available Micronaut Versions
================================================================================
1.3.7 1.2.4
1.3.6 1.2.3
1.3.5 1.2.2
1.3.4 1.2.1
1.3.3 1.2.0
1.3.2 1.1.4
1.3.1 1.1.3
1.3.0 1.1.2
1.2.11 1.1.1
1.2.10 1.1.0
1.2.9 1.0.5
1.2.8 1.0.4
1.2.7 1.0.3
1.2.6 1.0.2
1.2.5 1.0.1
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
SDKMAN!
script: 5.19.0
native: 0.5.0
uname -a
Linux ca33fa719848 6.12.5-orbstack-00287-gf8da5d508983 micronaut-projects/micronaut-core#19 SMP Tue Dec 17 08:07:20 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Environment Details
- Operating System (host machine): macOS Ventura
- Operating System (inside Docker container): Ubuntu 22.04
- SDKMAN! Version: Run
sdk version - Micronaut Version (if applicable): N/A
Additional Notes
- I already tried
sdk flush candidatesandsdk selfupdate, but the issue persists. - This issue only occurs in Ubuntu-based Docker containers, while macOS works fine.
- Could this be related to how SDKMAN! fetches versions in different environments?
- Any insights would be appreciated!
Thanks! 🚀