Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current implementation of `img prune` does not actually remove any data. This changeset introduces an extra variadic argument to the `Prune` call, producing behavior equivalent to `buildctl prune` invoked without flags against a BuildKit daemon. The issue and proposed fix become more clear with a look at the underlying implementation, which loops over the variadic `PruneInfo` arguments and runs a prune operation based on options specified in each argument. With no arguments, it just attempts garbage collection on the metadata store. https://github.com/genuinetools/img/blob/d858ac71f93cc5084edd2ba2d425b90234cf2ead/vendor/github.com/moby/buildkit/cache/manager.go#L515-L520
- Loading branch information