-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add in terraform package * remove the extra CGO_ENABLED * Clean up `terraform` package * Update Terraform to v1.9.5 --------- Co-authored-by: Kyle Lacy <[email protected]>
- Loading branch information
1 parent
7cb1bd6
commit 5dee125
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as std from "std"; | ||
import { goBuild } from "go"; | ||
|
||
export const project = { | ||
name: "terraform", | ||
version: "1.9.5", | ||
}; | ||
|
||
const source = Brioche.download( | ||
`https://github.com/hashicorp/terraform/archive/refs/tags/v${project.version}.tar.gz`, | ||
) | ||
.unarchive("tar", "gzip") | ||
.peel(); | ||
|
||
export default function (): std.Recipe<std.Directory> { | ||
return goBuild({ | ||
source, | ||
buildParams: { | ||
ldflags: ["-w", "-s", `-X github.com/hashicorp/terraform/version.dev=no`], | ||
mod: "readonly", | ||
}, | ||
runnable: "bin/terraform", | ||
}); | ||
} |