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

Expands ~ and environment variables in file paths #118

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

gdavison
Copy link
Contributor

Restores expansion of ~ in file paths.

Adds expansion of environment variables in file paths.

Closes #117
Reference: hashicorp/terraform-provider-aws#23207

Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make test
go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2	1.803s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/awsconfig	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/config	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/constants	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/endpoints	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/httpclient	0.604s
?   	github.com/hashicorp/aws-sdk-go-base/v2/mockdata	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/servicemocks	[no test files]
cd v2/awsv1shim && go test -timeout=30s -parallel=4 ./...
go: downloading github.com/aws/aws-sdk-go v1.42.52
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2	1.086s
?   	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/mockdata	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr	0.744s

@gdavison gdavison merged commit 27aa23d into main Feb 16, 2022
@gdavison gdavison deleted the path-expansion branch February 16, 2022 22:41
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.

Shared credentials and configuration files paths are not expanded
2 participants