Commit Graph

4 Commits

Author SHA1 Message Date
zowoq
751887b1f6 terraform-providers: update nix command for nix 2.4 2021-11-17 10:36:40 +10:00
Andreas Rammhold
e3a4ba0052
terraform-providers: fix impurity about Nix version used
I wasn't able to figure out for which unstable version of Nix this is
supposed to work so I added nix itself to the package list. Nix will now
be the same stable version that is also provided in this nixpkgs
checkout.

To make it work with a stable Nix version I also had to trim the build
error output as otherwise it would contain the sha256 prefix & a newline
followed by "error:".
2021-03-04 12:34:48 +01:00
Jonas Chevalier
5851c31127
terraform-providers: handle go modules (#104667)
* terraform-providers: handle go modules

More and more terraform providers are switching from vendored
dependencies to Go modules.

Let's say that you update the "aws" provider and it fails. You can run
it again with:

    ./update-provider aws --vendor

Any package that has the "vendorSha256" key will be considered as a go
module package.

The script now also supports adding new providers by using the
<owner>/<repo> format. Eg:

     ./update-provider hetznercloud/hcloud --vendor

* address comment

Fixes https://github.com/NixOS/nixpkgs/pull/104667#discussion_r529788569

* support the null use-case

* escape provider name as well

* fix typo
2020-12-01 11:05:00 +01:00
Timothy Stott
107707ad82 terraform-providers: update providers via terraform registry 2020-10-08 19:00:07 +01:00