Closed fgrehm closed 2 years ago
The reason that https://github.com/sclevine/yj/releases/latest/download/yj-linux is returning a 404 is because the name of the binary on the release pages has changed from yj-linux
to yj-linux-amd64
in release v5.1.0
, so the correct URL is now: https://github.com/sclevine/yj/releases/latest/download/yj-linux-amd64.
I've opened #130 to fix this.
@fgrehm the code has been merged in, so the change should take effect in the next release of the stacks. Unfortunately, the stacks aren't released until there's a change in the packages in either build or run image. Is this blocking for you? There might be a viable workaround until the stacks are released if needed.
@sophiewigmore sorry, missed your msg here, I wrote this on the PR https://github.com/paketo-buildpacks/stacks/pull/131#issuecomment-1102728325
Related to https://github.com/paketo-buildpacks/stacks/issues/8
What happened?
Run
yj
during our image builds to convert toml to JSON, just so we can manipulate / query withjq
yj
should always workAt times it seem to me that it's failing to download:
We have automated tests for our custom builder which includes pulling the upstream
full-cnb
img and adding "our stuff" on top of it. We noticed this last friday and I have no idea why things were intermittent for me, we run this on CircleCI so it could be some layer cache since we don't lock it to a specific version (we want to always pull in latest)Here's the
docker inspect
for what I have on my computer right now.Build Configuration
pack
,kpack
,tekton
buildpacks plugin, etc.) are you using? Please include a version.We have our own wrapper on top of
lifecycle
which usesyj
, but shouldn't matter in this case IMOShould not matter
pack inspect-builder <builder>
?Should not matter
buildpack.yml
,nginx.conf
, etc.)?Should not be necessary
Checklist
Starting point
https://github.com/sclevine/yj/releases/latest/download/yj-linux from https://github.com/paketo-buildpacks/stacks/blob/554003b821598c1d24415ffae4d0759acb60d14b/bionic/dockerfile/build/Dockerfile#L19
Redirects me to a 404 page. I wonder if we should lock it to a specific release on the
Dockerfile
Another idea would be to change that
curl
to fail if HTTP status != 200