-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdk init requires git global configuration #530
Comments
The setup probably finished, but what didn't happen is that the project got compiled for you. You need to run:
first to compile the |
Maybe we shouldn't auto-init a git repository. It feels like an overreach, and might even hinder if you're trying to run @RomainMuller, thoughts? |
The mono repo story isn't one, because we don't One first thing we should do is to force the user info for the commit that is auto-created if there isn't any global configuration available, so that The other thing is we can allow people to opt out of the The reason I hold dear to that is because a lot of other "package init" tools do this, and I feel it's part of the basic expectations nowadays... |
@RomainMuller this is solved by #540, correct? |
No. This issue is about it requiring global |
can you update the description to reflect the actual issue? It starts by talking about the config file issue |
I think we might also just be able to survive a failing git command and notify the user. |
Don't stop the 'cdk init' process if there's a problem with 'git init/add/commit'. Instead, report an error and continue. This makes sure 'cdk init' doesn't break for people with custom git setups. Fixes #530.
Don't stop the 'cdk init' process if there's a problem with 'git init/add/commit'. Instead, report an error and continue. This makes sure 'cdk init' doesn't break for people with custom git setups. Fixes #530.
On my machine I don't have a global git config for username and email because for every repository I create I want to explicitly set whether I'm using my work or personal account. Since I don't have that I get errors when I execute
cdk init app --language=typescript
Looks like the project isn't finished creating either because when I run cdk synth I get errors about a missing hello-cdk.js.
The text was updated successfully, but these errors were encountered: