Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion image/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func listReferences(w walker) (map[string]*descriptor, error) {

if err := w.walk(func(path string, info os.FileInfo, r io.Reader) error {
if info.IsDir() || !strings.HasPrefix(path, "refs") {
return nil
return errors.New("no descriptors found")
}

var d descriptor
Expand Down
6 changes: 0 additions & 6 deletions image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ func validate(w walker, refs []string, out *log.Logger) error {
if err != nil {
return err
}
if len(refs) == 0 && len(ds) == 0 {
// TODO(runcom): ugly, we'll need a better way and library
// to express log levels.
// see https://github.com/opencontainers/image-spec/issues/288
out.Print("WARNING: no descriptors found")
}

if len(refs) == 0 {
for ref := range ds {
Expand Down