Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): CLI errors when run as a non-existent user (#21018)
The CDK home directory was being created in the users home directory, but this causes an error if for some reason the user does not have a home directory. This PR adds some fallback logic so that if the users home directory does not exist it will fall back to creating a tmp directory. fix #7937 ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information