Commit Graph

2 Commits

Author SHA1 Message Date
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