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

Windows "failed to create new working directory" Without Create Symbolic Link Permissions #759

Open
bflad opened this issue Apr 30, 2021 · 1 comment
Labels
bug Something isn't working subsystem/tests Issues and feature requests related to the testing framework.

Comments

@bflad
Copy link
Contributor

bflad commented Apr 30, 2021

SDK version

v2.6.1

Relevant provider source code

Any acceptance test.

Terraform Configuration Files

Any acceptance test configuration.

Debug Output

Will require Windows machine to provide (I do not currently have one, but reporting on behalf of another provider developer).

Expected Behavior

Developers on Windows machines without "create symbolic links" permissions can run acceptance testing, whereas the acceptance testing framework falls back to file copying when receiving a symlink permissions error.

Actual Behavior

=== CONT  TestAccDataSourceAwsGlueConnection_basic
    data_source_aws_glue_connection_test.go:18: failed to create new working directory: symlink C:\Users\danu165\development\terraform-providers\terraform-provider-aws\aws\internal C:\Users\danu165\AppData\Local\Temp\plugintest52906
1170\work132527849\internal: A required privilege is not held by the client.
--- FAIL: TestAccDataSourceAwsGlueConnection_basic (3.33s)

Steps to Reproduce

  1. TF_ACC=1 go test -run=TestAccXXX -v ./aws

References

@bflad bflad added bug Something isn't working subsystem/tests Issues and feature requests related to the testing framework. labels Apr 30, 2021
@bflad
Copy link
Contributor Author

bflad commented Apr 30, 2021

It is not pretty, but here is a (potentially outdated) example of capturing the error: https://github.com/golang/dep/pull/781/files

@bflad bflad changed the title Windows "failed to create new working directory" Without Symlink Permissions Windows "failed to create new working directory" Without Create Symbolic Link Permissions Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working subsystem/tests Issues and feature requests related to the testing framework.
Projects
None yet
Development

No branches or pull requests

1 participant