Repository: wagoodman/dive (language: go)

Issue:
dive with podman on MacOS
I'm trying to use dive with podman on MacOS.
```
$ dive version
dive 0.10.0
```
I'm using a local build of podman, since there was a bug fixed upstream that hasn't been released yet:
```
$ podman version
Client:
Version:      4.0.0-dev
API Version:  4.0.0-dev
Go Version:   go1.16.2
Git Commit:   c0cde378298bd8d5183155c8f62aae574be069eb-dirty
Built:        Wed Sep 15 09:47:15 2021
OS/Arch:      darwin/amd64

Server:
Version:      3.3.1
API Version:  3.3.1
Go Version:   go1.16.6
Built:        Mon Aug 30 13:46:36 2021
OS/Arch:      linux/amd64
```
But I guess this setup is still unsupported?
```
$ dive --source podman docker.io/hello-world
Image Source: podman://docker.io/hello-world
Fetching image... (this can take a while for large images)
cannot fetch image
unsupported platform
```
I am able to build images using podman with this dev release, and the bug fix for podman on MacOS will be released in podman 3.4 (so, soon).


Discussion / hints:
Any news on this issue ?

Fix patch:
diff --git a/dive/image/podman/build.go b/dive/image/podman/build.go
index bfebc492..617f1468 100644
--- a/dive/image/podman/build.go
+++ b/dive/image/podman/build.go
@@ -1,4 +1,4 @@
-// +build linux
+// +build linux darwin
 
 package podman
 
diff --git a/dive/image/podman/cli.go b/dive/image/podman/cli.go
index 83523afc..b9090557 100644
--- a/dive/image/podman/cli.go
+++ b/dive/image/podman/cli.go
@@ -1,4 +1,4 @@
-// +build linux
+// +build linux darwin
 
 package podman
 
diff --git a/dive/image/podman/resolver_linux.go b/dive/image/podman/resolver.go
similarity index 97%
rename from dive/image/podman/resolver_linux.go
rename to dive/image/podman/resolver.go
index 592c0383..a265d181 100644
--- a/dive/image/podman/resolver_linux.go
+++ b/dive/image/podman/resolver.go
@@ -1,3 +1,5 @@
+// +build linux darwin
+
 package podman
 
 import (
diff --git a/dive/image/podman/resolver_notlinux.go b/dive/image/podman/resolver_unsupported.go
similarity index 93%
rename from dive/image/podman/resolver_notlinux.go
rename to dive/image/podman/resolver_unsupported.go
index 8dfdd227..c49c5224 100644
--- a/dive/image/podman/resolver_notlinux.go
+++ b/dive/image/podman/resolver_unsupported.go
@@ -1,4 +1,4 @@
-// +build !linux
+// +build !linux,!darwin
 
 package podman
 


Test patch: