CLI: cdk init
fails if run under a directory where cdk.json
exists
#5826
Labels
cdk init
fails if run under a directory where cdk.json
exists
#5826
I have a messy
~/Temp
directory where I try out all kinds of things.It so happens that
~/Temp/cdk.json
exists, but what happens since #5772 is that I can't runcdk init
anymore anywhere under~/Temp
, which I do all the time:Well the directory is empty! I just made it!
Turns out that the CLI
chdir()
s to~/Temp
beforecdk init
is run, but it's super hard for me to figure that out.Can I suggest that the magic
chdir
behavior only happens when applicable to an existing CDK app, for commands likesynth
anddeploy
etc?This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: