Commit Graph

3 Commits

Author SHA1 Message Date
Paul Holzinger 92c98a7323 libimage: add !remote tag
To prevent the podman remote client from using libimage which causes a
lot of bloat due the c/image and c/storage dependencies add the
`!remote` tag.

This will cause a hard compile time failure if the remote client ends up
pulling in libimage.

Fixes #1702

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-23 15:14:43 +02:00
Valentin Rothberg 9d4b1bf156 libimage: fix computing history
Computing the history did not walk the layers correctly.  Fix that and
try to improve the code to make it easier to read and maintain for
future pairs of eyes.

A regression will also be added to the Podman PR vendoring this change.

Fixes: containers/podman/issues/20375
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-10-17 16:18:12 +02:00
Valentin Rothberg e969956170 history: set Tags
Correctly set the tags of history layers.  Also make sure to nil the
loop `layer` variable when it has no parent.

Fixes: containers/podman/issues/17763
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-05-02 13:48:10 +02:00