Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #475 - can't inspect docker:23.0.1 with podman #476

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abitrolly
Copy link
Contributor

Fix #475 - can't inspect docker:23.0.1 with podman

The problem was caused by net/url.Parse()

panic: parse "podman://docker:23.0.1": invalid port ":23.0.1" after host

https://go.dev/play/p/XM4j4RH6bA0

Testing the fix

✗ ./dive podman://docker:23.0.1
Image Source: podman://docker:23.0.1

✗ ./dive podman://docker:23.0.1 --source docker
Image Source: podman://docker:23.0.1

✗ ./dive docker:23.0.1 --source podman
Image Source: podman://docker:23.0.1

`IsSet("source")` returned `true` even if `--source` was not specified.

https://github.com/spf13/viper/releases/tag/v1.6.0
The problem was caused by net/url.Parse()
   panic: parse "podman://docker:23.0.1": invalid port ":23.0.1" after host

Testing the fix
  ✗ ./dive podman://docker:23.0.1
  Image Source: podman://docker:23.0.1

  ✗ ./dive podman://docker:23.0.1 --source docker
  Image Source: podman://docker:23.0.1

  ✗ ./dive docker:23.0.1 --source podman
  Image Source: podman://docker:23.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't inspect docker:23.0.1 through podman
1 participant