kustomize-github-action icon indicating copy to clipboard operation
kustomize-github-action copied to clipboard

[BUG] curl fails to download kustomize

Open BartoszBrodzinski-TomTom opened this issue 9 months ago • 4 comments

Describe the bug curl is failing to download kustomize.

getting download url for kustomize v5.4.2
curl: option : blank argument where content is expected
curl: try 'curl --help' or 'curl --manual' for more information
curl: option : blank argument where content is expected
curl: try 'curl --help' or 'curl --manual' for more information
curl: option : blank argument where content is expected
curl: try 'curl --help' or 'curl --manual' for more information
...
Failed to find download URL for v5.4.2

The action started failing today after yesterday's alpine release: https://alpinelinux.org/posts/Alpine-3.20.0-released.html

I looks like with latest release of alpine:3.20, apk repository contains curl app version that isn't backward compatible.

Changing versions of kustomize to download doesn't do the job.

To Reproduce Just run the action.

Expected behavior Action is able to download kustomize with curl and run kustomize on files in repo.

Screenshots/Actions log No need for screenshot, logs at the top of the issue.

Running on: doesn't matter

Additional context https://github.com/karancode/kustomize-github-action/blob/883a86ec3535e4e7d0fe6450a85f8325c97d2a7b/Dockerfile#L1

Pinning alpine to major version only, without minor version is not a very good approach when it comes to alpine images. Different releases of alpine have different versions of apps in apk repository. Up to version 3.19 everything worked fine, now it fails with 3.20.