Skip to content

Match filename extension only at the end of the filename - #24

Closed
giltene wants to merge 21 commits into
actions:masterfrom
giltene:master
Closed

Match filename extension only at the end of the filename#24
giltene wants to merge 21 commits into
actions:masterfrom
giltene:master

Conversation

@giltene

Copy link
Copy Markdown
Contributor

Changes the matching for filename extensions to only match extensions at the end of the filename, and ignore false matches with the same pattern in the middle of the name. This avoids wrongly matching .tar.gz.sig and zip.sig files in the CDN.

The change will prevent issues like #23 happening in the future if/as .sig files are added on the CDN. For the time being, the Zulu CDN has been cleansed of .sig files to avoid this issue, but we would like to be able to safely .sig files back up once this change makes it into a 1.x version of setup-java...

I have verified this change the entire range of Java versions (6, 7, 8, 9, 10, 11, 12, 13), update levels, and OS platforms available on the CDN at this point in time.

@giltene

Copy link
Copy Markdown
ContributorAuthor

Ping...

@ScoppioScoppio left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Seen to solve problem with extension being found in the wrong place.

@jawher

Copy link
Copy Markdown

A workaround until this PR is merged is to use the @giltene's fork:

- name: Set up JDK 11uses: giltene/setup-java@masterwith:
java-version: 11

@jawherjawher mentioned this pull request Oct 15, 2019
@giltene

Copy link
Copy Markdown
ContributorAuthor

@damccorm, @stephenmichaelf can one of you review this change and hopefully merge it? We would really like to put .sig files back where they belong on the Zulu cdn, and this is what is blocking that right now...

@damccorm

Copy link
Copy Markdown
Contributor

@bryanmacfarlane could you triage appropriately?

@bryanmacfarlane

Copy link
Copy Markdown
Contributor

@madhurig

@giltene

Copy link
Copy Markdown
ContributorAuthor

PR #27 includes this change with a cleaner history, so I’m closing this one.

@giltenegiltene closed this Nov 13, 2019
Sign up for freeto 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.

5 participants

@giltene@jawher@damccorm@bryanmacfarlane@Scoppio