Commit Graph

13 Commits

Author SHA1 Message Date
zowoq
d1abee2262 terraform-providers: switch to hash/vendorHash 2022-09-25 07:38:43 +10:00
zowoq
3e63fa279f terraform-providers: add passthru.updateScript
- drop nix-shell nixpkgs path
2022-09-15 06:00:33 +10:00
zowoq
8bb4fac405 terraform-providers: update scripts
- skip updates that include alphabetic characters in version
2022-05-30 17:33:38 +10:00
zowoq
a70d6ad88c terraform-providers: update scripts
- skip updates that include alpha|beta|pre in version
2022-05-17 07:50:58 +10:00
zowoq
c32a688f82 terraform-providers: refactor scripts
- improve script output
- use sri hashes, same as recent versions of `nix`
2022-03-14 08:08:07 +10:00
zowoq
215002fb9f terraform-providers: update scripts
- 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`
2022-02-07 12:02:36 +10:00
zowoq
c5104c3dc1 terraform-providers: update-provider script
- add nixpkgs path for nix-prefetch
2022-01-04 10:57:32 +10:00
zowoq
5280e28e13 terraform-providers: update-provider scripts
- use nix-prefetch for vendorSha256
- use no-out-link for nix-build
- fix nixpkgs import path
2022-01-02 16:53:11 +10:00
zowoq
8f24dd162f terraform-providers: update-provider scripts
- shellcheck / shfmt
2022-01-02 08:27:48 +10:00
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