8000 Match filename extension only at the end of the filename by giltene · Pull Request #24 · actions/setup-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@giltene
Copy link
Contributor
@giltene giltene commented Sep 30, 2019

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
Contributor Author
giltene commented Oct 10, 2019

Ping...

Copy link
@Scoppio Scoppio left a comment

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
jawher commented Oct 15, 2019

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

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

@jawher jawher mentioned this pull request Oct 15, 2019
@giltene
Copy link
Contributor Author
giltene commented Oct 20, 2019

@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
Contributor

@bryanmacfarlane could you triage appropriately?

@bryanmacfarlane
Copy link
Member

@madhurig

@giltene
Copy link
Contributor Author
giltene commented Nov 13, 2019

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

@giltene giltene closed this Nov 13, 2019
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.

5 participants

0