Azure / draft-classic

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

`draft pack-repo update` fails with local pack repositories #941

Open jpetazzo opened 4 years ago

jpetazzo commented 4 years ago

How to reproduce:

cd /tmp
mkdir -p local-pack-repo/packs/my-local-pack
helm create local-pack-repo/packs/my-local-pack/charts
draft pack-repo add local-pack-repo/
draft pack-repo update

We get the error message:

Error: cannot get information about pack repo source
Error: exit status 1

Cleaning up:

draft pack-repo remove local-pack-repo
rm -rf /tmp/local-pack-repo

Additional notes: I thought that the pack repo had to be a git repo, so I tried various hacks to make it a git repo with a local remote; but nothing worked (it looks like Draft tries to make up a git repo URL from its path, fails, and reports the error anyway).