-
Notifications
You must be signed in to change notification settings - Fork 290
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
v0.33.0 bug: CheckReadAccess fails when using a local run image #2078
Comments
This is unfortunate. I think the right way to fix this is to make |
I experience the same error. |
Since I could not continue my work because of this issue with the local image from my Podman installtion, I tried to use our private "ghrc.io/my-company..." registry on github as workaround. Unfortunately this workaround does not work;-( the pack build sample-app --path ./my-project --builder ghcr.io/my-company/... --pull-policy=if-not-present command gives
although my local podman login into ghcr.io is working. is this also a (another) bug? |
Hi @jochenr In theory the workaround is to point to a remote registry, it could be a local v2 registry where you push the image and point to that one, or as you said, using your company private registry. It looks like you don't read access to that remote registry? service=ghcr.io: UNAUTHORIZED: authentication required
panic: runtime error: index out of range [0] with length 0 I just updated my branch with the latest main, if it is possible for you, could you test the binary from that branch to verify the error is fixed? |
Once the CI job finish, the binaries must be available here |
Hi @jjbustamante, thank you! |
Good Morning @jjbustamante, good news. Thank you! |
Thanks!!! @jochenr that's really helpful |
Summary
See https://cloud-native.slack.com/archives/C0331B61A1Y/p1708468320706469 for more context.
When upgrading to pack v0.33.0 from v0.32.1 in our stack implementation test suite, we run into the following error during a
pack build
:We are creating a stack build/run image locally, then creating a builder with those stack images, and then using the builder in a
pack build
. As a result of the changes in this PR, this no longer works due to issues with accessing the local run image on the docker daemon.As a workaround, we are able to create a local docker registry, and push the stack images, which helps us to avoid this issue. We would still like to to be able to build and test stack images locally without needing to do this, however.
Reproduction
Steps
pack
pack build
of a simple appOR more simply
scripts/test.sh
which will do the above stepsbuildpack_integration_test.go
test caseCurrent behavior
Build failed due to inability to access the local run image
Expected behavior
Successful build
Environment
pack info
The text was updated successfully, but these errors were encountered: