Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 396 forks source link

Running draft init twice on Windows fails with "pack repo already exists" #586

Closed alexpilotti closed 6 years ago

alexpilotti commented 6 years ago

After a first draft init execution on Windows, running a second time fails with the following error:

Installing default plugins...
Installation of default plugins complete
Installing default pack repositories...
Installing pack repo from https://github.com/Azure/draft
Error: pack repo already exists
Error: exit status 1
bacongobbler commented 6 years ago

I believe this was fixed in recent versions. Can you try v0.12.0-rc2 and see if that works for you? From my local testing on linux, this appears to work:

><> draft version
&version.Version{SemVer:"v0.12.0-rc2", GitCommit:"b66329c163c67dc8c7f9a3560573f0c9d42ce560", GitTreeState:"dirty"}
><> draft init
[...]
$DRAFT_HOME has been configured at /home/bacongobbler/.draft.
Happy Sailing!
><> draft init
Installing default plugins...
Installation of default plugins complete
Installing default pack repositories...
Installation of default pack repositories complete
$DRAFT_HOME has been configured at /home/bacongobbler/.draft.
Happy Sailing!
radu-matei commented 6 years ago

Just tried on Windows, the error is still there:

> draft init
Installing default plugins...
Installation of default plugins complete
Installing default pack repositories...
Installing pack repo from https://github.com/Azure/draft
Error: pack repo already exists
Error: exit status 1
bacongobbler commented 6 years ago

:<