Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin to an older version of the example alpine builder #594

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jul 12, 2023

In CI a pack build is performed using one of libcnb's example CNBs and the upstream cnb/sample-builder:alpine builder, in order to test that our static MUSL compile works with non-libc base images.

However, CI has just started failing with:

ERROR: failed to build: experimental features must be enabled when builder contains image extensions

(https://github.com/heroku/libcnb.rs/actions/runs/5530837180/jobs/10090742723?pr=592#step:10:107)

This is due to the upstream images having been rebuilt with extension support, which is an experimental feature until the next stable Pack CLI release:
buildpacks/samples#149
buildpacks/samples#142
https://github.com/buildpacks/pack/releases/tag/v0.30.0-pre3

As such until Pack CLI v0.30 is released as stable, we'll have to pin to an older alpine image by SHA256 ref.

GUS-W-13746154.

In CI a `pack build` is performed using one of libcnb's example CNBs
and the upstream `cnb/sample-builder:alpine` builder, in order to test
that our static MUSL compile works with non-libc base images.

However, CI has just started failing with:

```
ERROR: failed to build: experimental features must be enabled when builder contains image extensions
```
(https://github.com/heroku/libcnb.rs/actions/runs/5530837180/jobs/10090742723?pr=592#step:10:107)

This is due to the upstream images having been rebuilt with extension
support, which is an experimental feature until the next stable Pack CLI
release):
buildpacks/samples#149
buildpacks/samples#142

As such until Pack CLI v0.30 is released as stable, we'll have to pin
to an older `alpine` image by SHA256 ref.

GUS-W-13746154.
@edmorley edmorley self-assigned this Jul 12, 2023
@edmorley edmorley marked this pull request as ready for review July 12, 2023 12:40
@edmorley edmorley requested a review from a team as a code owner July 12, 2023 12:40
@edmorley edmorley enabled auto-merge (squash) July 12, 2023 12:40
@edmorley edmorley merged commit 67de4ef into main Jul 12, 2023
5 checks passed
@edmorley edmorley deleted the edmorley/fix-ci branch July 12, 2023 12:44
edmorley added a commit that referenced this pull request Sep 7, 2023
In CI a `pack build` is performed using one of libcnb's example CNBs
and the upstream `cnb/sample-builder:alpine` builder, in order to test
that our static MUSL compile works with non-libc base images.

However, in #594 the version of that builder had to be pinned to
an older release, to work around a temporary incompatibility
between the latest version of the builder and the latest stable
Pack CLI.

Now that Pack CLI 0.30 has been released, the latest alpine builder
will work again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants