Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Merged
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
4 changes: 4 additions & 0 deletions image/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func findConfig(w walker, d *descriptor) (*config, error) {
if err := json.Unmarshal(buf, &c); err != nil {
return err
}
// check if the rootfs type is 'layers'
if c.RootFS.Type != "layers" {
return fmt.Errorf("'%s' is an unknown rootfs type, MUST be 'layers'", c.RootFS.Type)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'%s'%q.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a string. granted the %q would put it in quotes, but this seems fine for now.

}
return errEOW
}); err {
case nil:
Expand Down