aws-toolkit-vscode
aws-toolkit-vscode copied to clipboard
fix: validate path for getHomeDirectory
Problem
- Users with misconfigured env variables -
HOMEorUSERPROFILEorHOMEPATHAWS_SHARED_CREDENTIALS_FILEorAWS_CONFIG_FILEare unable to login into Amazon Q and AWS Toolkits extensions.
Solution
- Added a
isValidPathfunction to ensure a valid path is used for authentication
TODO
- [x] Update
fstofsCommonbecause the web tests are failing. This entails updating all functions to usePromises - [x] Updating
createVueEntriesfunction to allow developers to build on *NIX and Windows. - [x] Add Logging
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
/retryBuilds
Users on windows are unable to login to AWS Toolkits and Amazon Q extension on
Windowsbecause env variable:HOMEis set incorrectly
It's not really a Windows specific issue. Any system with a misconfigured $HOME env var could have this issue.
/runIntegrationTests