autopkg / n8felton-recipes

Recipes for Autopkg
28 stars 35 forks source link

AmazonCorretto recipe failing to find download link #111

Closed robertryansqub closed 2 years ago

robertryansqub commented 4 years ago

The AmazonCorretto recipe is failing for both versions 8 and 11, with an error like:

Error in local.munki.AmazonCorretto11: Processor: URLTextSearcher: Error: No match found on URL: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html

Full text of a verbose run is attached. out.txt

If I run curl against the URL above it looks like all the download links are being inserted via JavaScript so I'm assuming this is the error. Not sure if it's possible to work around that?

n8felton commented 4 years ago

Leaving notes for myself to finish this later.

Found this: https://github.com/awsdocs/amazon-corretto-11-user-guide/blob/7f4904052677d104e2d3ed7c4d3a572b2c31d0fc/doc_source/downloads-list.md#using-permanent-urls Need to switch to https://corretto.aws/downloads/latest/amazon-corretto-11-x64-macos-jdk.pkg (and the v8 version as well)

n8felton commented 4 years ago

Might also be good to implement the checksum stuff too, seeing how it's available.

n8felton commented 4 years ago

Partially pending https://github.com/corretto/corretto-11/pull/68