- add flag to skip building updated providers
- have the github action skip building providers so we don't need to handle build failures in the script
- remove outdated `vendor` flag, all providers use `buildGoModule`
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:".
* 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