Skip to content

Commit

Permalink
Suggest updating the input in case of a missing version for languages…
Browse files Browse the repository at this point in the history
….terraform.version
  • Loading branch information
oscar-izval committed Mar 12, 2024
1 parent ea2a70d commit 0c57244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/languages/terraform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in

config = lib.mkIf cfg.enable {
languages.terraform.package = lib.mkMerge [
(lib.mkIf (cfg.version != null) (nixpkgs-terraform.packages.${pkgs.stdenv.system}.${cfg.version} or (throw "Unsupported Terraform version, see https://github.com/stackbuilders/nixpkgs-terraform/blob/main/versions.json for the full list of supported versions.")))
(lib.mkIf (cfg.version != null) (nixpkgs-terraform.packages.${pkgs.stdenv.system}.${cfg.version} or (throw "Unsupported Terraform version, update the nixpkgs-terraform input or go to https://github.com/stackbuilders/nixpkgs-terraform/blob/main/versions.json for the full list of supported versions.")))
];

packages = with pkgs; [
Expand Down

0 comments on commit 0c57244

Please sign in to comment.