Skip to content

Plugins installation path and delete issue #16899

@githubvick

Description

@githubvick

Terraform Version

v0.11.1

...

Terraform Configuration Files

...

I had upgraded from version 0.9. I've been using Terraform with automation through Jenkins where environments would be created and destroyed.

After each automation iteration, the terraform config files would be deleted and checked out from SCM repo.

After installation of 0.11.1, I had to run "terraform init" command and it downloaded the azurerm plugin in .terraform/plugins/linux_amd64/terraform-provider-azurerm_v0.3.3_x4 folder which has the config files and not in the home directory as mentioned here https://www.terraform.io/docs/configuration/providers.html#third-party-plugins

Now when Jenkins tries to delete the repo to checkout again, it complains that it is not able to delete the above plugin probably due to a file lock.

Why the plugins are installed inside of the working directory and not in the home directory ? Is it possible to install the plugin in a different folder during init so that automation is possible?

Thanks,

Expected Behavior

Plugins to be installed in the HOME directory

Actual Behavior

Plugins installed in the working directory

Steps to Reproduce

References

hashicorp/terraform-provider-azurerm#596

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions