Commit 2225276
Fix Java feature: fallback to LTS when latest feature release is unavailable
When the Adoptium API reports a most_recent_feature_release that is
greater than most_recent_lts, the non-LTS version may not be available
in SDKMAN distributions (ms, tem). Add fallback_to_lts_if_needed()
function that automatically falls back to the most recent LTS version
in this case, ensuring reliable installation.
Agent-Logs-Url: https://github.com/devcontainers/features/sessions/d1526a89-15e7-4087-bd4b-174e9f3eaf30
Co-authored-by: Kaniska244 <[email protected]>1 parent d3971c3 commit 2225276
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
198 | 212 | | |
199 | 213 | | |
200 | 214 | | |
| |||
208 | 222 | | |
209 | 223 | | |
210 | 224 | | |
211 | | - | |
| 225 | + | |
| 226 | + | |
212 | 227 | | |
213 | 228 | | |
214 | 229 | | |
| |||
0 commit comments