Giter VIP home page Giter VIP logo

Comments (9)

github-actions avatar github-actions commented on June 13, 2024

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

from go-containerregistry.

megamorf avatar megamorf commented on June 13, 2024

I'm also facing this issue. I ran crane ls, did some grep magic and piped the output to xargs ... | xargs -I % crane delete "${REGISTRY}/${NAMESPACE}/${PROJECT}:%" but get invalid checksum digest format.

The help text does not indicate that a digest is expected and just like OP said I'd expect crane to resolve the tag accordingly:

▶ crane delete --help
Delete an image reference from its registry

Usage:
  crane delete IMAGE [flags]

Flags:
  -h, --help   help for delete

Global Flags:
      --allow-nondistributable-artifacts   Allow pushing non-distributable (foreign) layers
      --insecure                           Allow image references to be fetched without TLS
      --platform platform                  Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
  -v, --verbose                            Enable debug logs

from go-containerregistry.

sankalp-khare avatar sankalp-khare commented on June 13, 2024

@iFrozenPhoenix could you share the output when you try this? thanks!

from go-containerregistry.

iFrozenPhoenix avatar iFrozenPhoenix commented on June 13, 2024

@sankalp-khare the error was something that the hash couldn't be found. Actually I can't reproduce it anymore.
Deleting a tag is now actually working. Can't say if it was a problem of the registry (distributon) or crane.

from go-containerregistry.

megamorf avatar megamorf commented on June 13, 2024

@sankalp-khare the error was something that the hash couldn't be found. Actually I can't reproduce it anymore.
Deleting a tag is now actually working. Can't say if it was a problem of the registry (distributon) or crane.

Can you add the crane version that you tested with so that I can check as well :-)

from go-containerregistry.

iFrozenPhoenix avatar iFrozenPhoenix commented on June 13, 2024

Sure, 0.19.0

from go-containerregistry.

testwill avatar testwill commented on June 13, 2024

crane delete x.x.x.x::443/my_test/ubuntu18.04:php7.2.10 --insecure

goroutine 9 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/google/go-containerregistry/pkg/v1/remote/transport.pickFromMultipleChallenges({0xc000014978, 0x1, 0x9a4fe6?})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:174 +0x71
github.com/google/go-containerregistry/pkg/v1/remote/transport.pingSingle({0xa7c2a8?, 0xc00007c690}, {0x0?, {0xc000030450?, 0x0?}}, {0xa77f60, 0xc00003cb00}, {0x9a569d, 0x5})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:90 +0x359
github.com/google/go-containerregistry/pkg/v1/remote/transport.pingParallel.func1({0xa7c2a8?, 0xc00007c690?}, {0x9a569d, 0x5})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:122 +0x7e
created by github.com/google/go-containerregistry/pkg/v1/remote/transport.pingParallel
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:136 +0x2d2
bearer
Error: DELETE https://x.x.x.x:443/v2/my_test/ubuntu18.04/manifests/php7.2.10: UNSUPPORTED: unsupported digest php7.2.10: invalid checksum digest format

from go-containerregistry.

testwill avatar testwill commented on June 13, 2024

v0.19.1

from go-containerregistry.

testwill avatar testwill commented on June 13, 2024

harbor

from go-containerregistry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.