-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: Allow users to override the default deploy tool workspace directory #617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing since we have environment variables abstracted with EnvironmentManager
I suggest adding a testing reset method on DeployToolWorkspaceMetadata
that can inject a custom instance of EnvironmentManager
with the workspace environment variable set.
src/AWS.Deploy.Orchestration/Utilities/EnvironmentVariableManager.cs
Outdated
Show resolved
Hide resolved
3515765
to
95a54a3
Compare
d2df8e9
to
bb0af2f
Compare
Reworked the PR to use dependency injection and added an integ test. |
4f197d2
to
cb0d0a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment about the doc update but otherwise I'm good with the change.
cb0d0a4
to
a5bff28
Compare
Issue #, if available:
DOTNET-6010
Description of changes:
The PR gives users the ability to set their custom deploy tool workspace directory. They can do so by setting a user scoped or machine scoped environment variable called
AWS_DOTNET_DEPLOYTOOL_WORKSPACE
. This variable must point to a directory that exists on the disk and does not contain any whitespace characters.This PR also solves the issue of failed deployments when the user profile path contains a whitespace character - #579
The underlying issue is with CDK and not with our deployment tool - aws/aws-cdk#2532 and aws/jsii#1296
Without the setting the
AWS_DOTNET_DEPLOYTOOL_WORKSPACE
environment variableThe same deployment is successful after the
AWS_DOTNET_DEPLOYTOOL_WORKSPACE
environment variableBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.