Commit Graph

8 Commits

Author SHA1 Message Date
Marius Bergmann 3ddd53e576 terraform-providers: fix handling of version/rev in provider list
I interpreted the purpose of stripping the first character from the 'version'
argument as an attempt to remove a prefixed 'v' (e.g. 'v1.0.0') from a version
tag. This works if the tag actually has a 'v' prefix, but also removes the first
character if version tags are not prefixed (e.g. '1.0.0').

Additionally, the 'v' was added again when specifying the `rev` for
`fetchFromGitHub` in default.nix. As described above, this did also not work
when provider repos did not prefix their version tags with 'v'.

I changed the implementation as follows:

- `version` and `rev` are stored inside data.nix
- `version` is used to declare the nix package version
- `rev` is used to fetch the proper git ref when building the package
- for determining `version`, an optional leading 'v' is trimmed from the tag
  name

Now this has the implication that the latest tag must always be a release tag
when using the `update-all` script, but as the result of running `update-all`
should always be reviewed before submission, makes this appear a manageable
tradeoff to me.
2019-11-08 23:41:08 +01:00
Roman Volosatovs 8c33df9d65
all-packages: use go 1.12 for terraform-providers.elasticsearch 2019-10-11 10:09:09 +02:00
Urban Skudnik f1b81ff2cd
Update ansible package
Needs to be moved out of automatic update-all since it requires
goDeps.
2019-07-26 12:45:20 +02:00
Bas van Dijk d19b0b2ddf terraform-provider-elasticsearch: init at 0.6.0 2019-05-27 17:48:36 +02:00
Stephen ab2c1a7bed
terraform-providers: limit subpackages
https://github.com/NixOS/nixpkgs/pull/52937#issuecomment-455629855
2019-01-18 09:49:19 -08:00
zimbatm e4f8d5c254
terraform-providers.gandi: init at 1.0.0 (#48223) 2018-10-11 21:53:30 +02:00
Wael M. Nasreddine 6ff45f34d8
terraform-providers: move ibm and libvirt underneath the terraform-providers 2018-09-28 11:32:19 -07:00
zimbatm ef64786cda
terraform: move providers to terraform-providers
Before, providers were only built indirectly. Since proviers don't
depend on terraform to build they can be moved into their own collection
of packages. This also has the advantage that they can be reached
directly using an attribute path (Eg: terraform-providers.nixos).

Co-authored-by: Wael Nasreddine <wael.nasreddine@gmail.com>
2018-09-28 11:22:27 -07:00