Skip to content
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

Check for existing directory when creating template with init #1885

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

hpmellema
Copy link
Contributor

Description of changes:
Updates the smithy init command to fail fast if the directory it is attempting to use as an output directory already exists.

Previously the command did not fail until after cloning the repo to a temp directory

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hpmellema hpmellema requested a review from a team as a code owner July 27, 2023 17:06
@hpmellema hpmellema changed the title Check for existing file Check for existing directory when creating template with init Jul 27, 2023
@hpmellema hpmellema merged commit 1f80a10 into smithy-lang:main Jul 27, 2023
10 checks passed
@hpmellema hpmellema deleted the check-for-existing-file branch July 27, 2023 22:29
syall pushed a commit to Xtansia/smithy that referenced this pull request Aug 11, 2023
…-lang#1885)

This commit updates the Smithy Init CLI command to fail before attempting to clone the template folder when the target 
output directory already exists.

---------
Co-authored-by: Michael Dowling <[email protected]>
alextwoods pushed a commit to alextwoods/smithy that referenced this pull request Sep 15, 2023
…-lang#1885)

This commit updates the Smithy Init CLI command to fail before attempting to clone the template folder when the target 
output directory already exists.

---------
Co-authored-by: Michael Dowling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants