Skip to content

Commit

Permalink
add macos-arm64 for terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
DanceMore authored and David Ko committed Dec 6, 2023
1 parent 2d0ea2f commit ea5e3f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/generator/src/pkg/terraform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ pub fn release() -> Package {
tag_version_regex_template: None,
scan_dirs: None,
}),
PackageTargetType::MacOSArm64(PackageManagement {
artifact_templates: vec![
"https://releases.hashicorp.com/terraform/{version}/terraform_{version}_darwin_arm64.zip"
.to_string(),
],
executable_templates: None,
executable_mappings: None,
install_commands: None,
uninstall_commands: None,
upgrade_commands: None,
tag_version_regex_template: None,
scan_dirs: None,
}),
PackageTargetType::Windows(PackageManagement {
artifact_templates: vec![
"https://releases.hashicorp.com/terraform/{version}/terraform_{version}_windows_amd64.zip"
Expand Down
3 changes: 3 additions & 0 deletions generated/packages/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ targets:
- MacOS:
artifact_templates:
- https://releases.hashicorp.com/terraform/{version}/terraform_{version}_darwin_amd64.zip
- MacOSArm64:
artifact_templates:
- https://releases.hashicorp.com/terraform/{version}/terraform_{version}_darwin_arm64.zip
- Windows:
artifact_templates:
- https://releases.hashicorp.com/terraform/{version}/terraform_{version}_windows_amd64.zip
Expand Down

0 comments on commit ea5e3f4

Please sign in to comment.