With [a fix][1] in [podman v3.4.3][2], these commands now work as
expected in macOS. Potentially, it might make sense to version check
podman to ensure that the minimum version is met, but I'm not sure
that's needed because it's unlikely that people have an older version
installed _and_ wish to use this tool.
I'm unsure whether the commands work on Windows so I left the
unsupported version there compiling with the negation of the supported
flags.
[1]: https://github.com/containers/podman/issues/12402
[2]: 4ba71f955a/RELEASE_NOTES.md (bugfixes-2)
23 lines
414 B
Go
23 lines
414 B
Go
// +build !linux,!darwin
|
|
|
|
package podman
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/wagoodman/dive/dive/image"
|
|
)
|
|
|
|
type resolver struct{}
|
|
|
|
func NewResolverFromEngine() *resolver {
|
|
return &resolver{}
|
|
}
|
|
|
|
func (r *resolver) Build(args []string) (*image.Image, error) {
|
|
return nil, fmt.Errorf("unsupported platform")
|
|
}
|
|
|
|
func (r *resolver) Fetch(id string) (*image.Image, error) {
|
|
return nil, fmt.Errorf("unsupported platform")
|
|
}
|