Skip to content

Conversation

@giltene
Copy link
Contributor

@giltene giltene commented Dec 22, 2019

These changes will address #34 and add support specifying EA versions in the following format examples. E.g.:
14-ea
14.0.0-ea
14.0.0-ea.28

This will support specifying EA versions in the following format examples. E.g.:
14-ea
14.0.0-ea
14.0.0-ea.28
Notes:
 - For the last form above, which is needed for requesting a specific ea build, we must only add '.x' if there are less than 3 dots in the version, hence the change from != 3 to < 3
- The prior parsing logic for e.g. 14.0.0-ea "spelling" will ignore precedence between build numbers in the form of e.g. 14.0.0-ea+b27 vs. 14.0.0-ea+b27 (so it will end up with the earliest rather than the latest ea build in the cdn), and does not allow specifying an ea build number (it will match 14.0.0-ea+b29 to a cdn 14.0.0-ea+b2). The new logic [copupled with the CDN populating EA builds in the form 14.0.0-ea.28) will resolve that.
Copy link
Contributor

@konradpabjan konradpabjan left a comment

Choose a reason for hiding this comment

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

Looks good 👍 Thanks for this!

I think an update to the README would be good as well with some example YAML to illustrate how to use the java versions that have a slightly different syntax

@giltene
Copy link
Contributor Author

giltene commented Dec 30, 2019

Agreed on the README, but I'd like to add the README examples separately, after we get out a version that would allow the CDN to hold more than one EA build at a time. The reason is that in the README, I would want to show how to specify a specific EA build version (e.g. 14.0.0-ea.27 vs. 14.0.0-ea.28), but for now, to get around the issue this pull request fixes, we've been "hiding" the older versions on the CDN such that only the one version appears at a time (otherwise only the earliest build would be picked up by the current logic).
Once we get the new logic in, we'll stop hiding older EA versions in the CDN, and then a README example requesting a specific (non-latest) EA build will work right. I'd want to do a separate pull request for the README at that point.

@konradpabjan konradpabjan merged commit 0e40802 into actions:master Dec 31, 2019
tdfacer pushed a commit to ifit/setup-java that referenced this pull request Oct 7, 2025
Add more robust support for EA version specification
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.

2 participants