terraform: add the version component to terraform provider paths (#34497)

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.
This commit is contained in:
Raitis 2018-02-06 21:09:22 +00:00 committed by zimbatm
parent edeacd00ad
commit 4e63119c54

View file

@ -11,6 +11,10 @@ let
inherit owner repo sha256;
rev = "v${version}";
};
# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/${repo}{,_v${version}}";
};
maybeDrv = name: data: