kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.58k stars 113 forks source link

Support for podman over docker `"docker-credential-desktop": executable file not found in $PATH` #1489

Open wmcnamee-coreweave opened 2 months ago

wmcnamee-coreweave commented 2 months ago

Feature Request

Is your feature request related to a problem? Please describe: I do not use Docker. I'd like to be able to run kcl mod add without relying on Docker. Currently getting this error:

"docker-credential-desktop": executable file not found in $PATH

Describe the feature you'd like: It would be nice if I could use Podman, which is API compatible with Docker (including much of the CLI).

Describe alternatives you've considered: Installing Docker Desktop and paying for a license

Teachability, Documentation, Adoption, Migration Strategy:

Peefy commented 2 months ago

Hello @wmcnamee-coreweave Thanks for the feedback.

cc @zong-zhe Can you help take a look at this issue?

wmcnamee-coreweave commented 1 month ago

I still can't use kcl mod add with this bug. Is there something specific I need to do to get past this error?

wmcnamee-coreweave commented 1 month ago

I actually just found the answer in a very roundabout way here: https://docs.earthly.dev/docs/guides/podman

mv ~/.docker/config.json ~/.docker/config.old.json
kcl mod add argo-workflow
adding dependency 'argo-workflow'
downloading 'kcl-lang/argo-workflow:0.0.4' from 'ghcr.io/kcl-lang/argo-workflow:0.0.4'
downloading 'kcl-lang/k8s:1.28' from 'ghcr.io/kcl-lang/k8s:1.28'
add dependency 'argo-workflow' successfully
Peefy commented 1 month ago

cc @zong-zhe