konveyor-ecosystem / kai

Konveyor AI - static code analysis driven migration to new targets via Generative AI
Apache License 2.0
8 stars 10 forks source link

If re-running fetch_apps.py instruct user to delete sample_repos dir #169

Closed jwmatthews closed 2 months ago

jwmatthews commented 2 months ago

There was a potential point of confusion if someone re-ran fetch_apps.py and already had sample_repos populated, this is intended to give them guidance so they know they should just delete the sample_repos directory and re-run

Also remove the older coolstore repo which we no longer use

Prior behavior when sample_repos was populated

$ time ./fetch_apps.py 
Cloning eap-coolstore-monolith...
fatal: destination path 'sample_repos/eap-coolstore-monolith' already exists and is not an empty directory.
Error cloning eap-coolstore-monolith
*** Exiting since we couldnt clone 'eap-coolstore-monolith'
./fetch_apps.py  0.02s user 0.02s system 52% cpu 0.091 total

New behavior when sample_repos is populated

$ time ./fetch_apps.py 
Cloning kitchensink...
*** Exiting since 'sample_repos/kitchensink' already exists
*** Delete 'sample_repos' and rerun this script
./fetch_apps.py  0.02s user 0.01s system 61% cpu 0.042 total