Skip to content

Commit

Permalink
Add in terraform package (#63)
Browse files Browse the repository at this point in the history
* 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
asheliahut and kylewlacy authored Sep 28, 2024
1 parent 7cb1bd6 commit 5dee125
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/terraform/brioche.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions packages/terraform/project.bri
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",
});
}

0 comments on commit 5dee125

Please sign in to comment.