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
terraform: add the version component to terraform provider paths #34497
terraform: add the version component to terraform provider paths #34497
Conversation
I think this looks good, thanks! @zimbatm any thoughts? |
I don't get it. Couldn't the plugins be built with the right output format directly? |
Oh yeah, that's probably better |
As mentioned in the initial description of the PR, this might work then: siers@4ce469e.
|
yeah let's do siers@4ce469e with a comment explaining the reason for the rename |
I've added a comment in both source and the commit message, here's the commit siers@5ed1b73 [EDIT: rebased onto the latest master]. Should I create a new PR or…? |
Terraform checks the provider versions, but this breaks if the versions are not provided, as they can be, if the plugins are provided by nix.
it's fine to force-push and replace the content of this branch if you want. or create a new PR and @mention me |
31d0de5
to
5ed1b73
Compare
@zimbatm Hey, I've forced the branch. |
@GrahamcOfBorg build terraform-full |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Hi @zimbatm, maybe you want to merge this onto the 17.09? It also has the |
pushed as b2e7bb5 |
Add version to binaries produced via patchGoModVendor to allow run-time provider version validation by terraform. This was initially introduced in 4e63119 (terraform: add the version component to terraform provider paths (#34497), 2018-02-06) but broken in 3e5149a (terraform-providers: fix the google and google-beta providers, 2020-03-24) for terraform-providers.google and terraform-providers.google-beta, and in 20f55a9 (terraform-providers.ibm: move to update-all script, 2020-04-26) for terraform-providers.ibm.
…#97590) Add version to binaries produced via patchGoModVendor to allow run-time provider version validation by terraform. This was initially introduced in 4e63119 (terraform: add the version component to terraform provider paths (NixOS#34497), 2018-02-06) but broken in 3e5149a (terraform-providers: fix the google and google-beta providers, 2020-03-24) for terraform-providers.google and terraform-providers.google-beta, and in 20f55a9 (terraform-providers.ibm: move to update-all script, 2020-04-26) for terraform-providers.ibm. (cherry picked from commit 94d2aeb)
Terraform checks the provider versions, but this breaks if the versions
are not provided, as they can be, if the plugins are provided by nix.
Motivation for this change
Fixes #34423.
I'm not sure whether a quick-fix(see first commit) would be more appropriate here or not.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
— no, just a couple./result/bin/
)