mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
1.3 KiB
1.3 KiB
Building Terraform
This document contains details about the process for building binaries for Terraform.
Versioning
As a pre-1.0 project, we use the MINOR and PATCH versions as follows:
- a
MINOR
version increment indicates a release that may contain backwards incompatible changes - a
PATCH
version increment indicates a release that may contain bugfixes as well as additive (backwards compatible) features and enhancements
Process
If only need to build binaries for the platform you're running (Windows, Linux, Mac OS X etc..), you can follow the instructions in the README for Developing Terraform.
The guide below outlines the steps HashiCorp takes to build the official release binaries for Terraform. This process will generate a set of binaries for each supported platform, using the gox tool.
# clone the repository if needed
git clone https://github.com/hashicorp/terraform.git
cd terraform
# Verify unit tests pass
make test
# Build the release
# This generates binaries for each platform and places them in the pkg folder
make bin
After running these commands, you should have binaries for all supported
platforms in the pkg
folder.