forked from opentofu/opentofu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to opentofu docs and root folder (opentofu#529)
- Loading branch information
Showing
22 changed files
with
323 additions
and
323 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# Building from Source | ||
|
||
If you'd like to build OpenTF from source, you can do so using the Go build toolchain and the options specified in this document. | ||
If you'd like to build OpenTofu from source, you can do so using the Go build toolchain and the options specified in this document. | ||
|
||
## Prerequisites | ||
|
||
1. Ensure you've installed the Go language version specified in [`.go-version`](.go-version). | ||
2. Clone this repository to a location of your choice. | ||
|
||
## OpenTF Build Options | ||
## OpenTofu Build Options | ||
|
||
OpenTF accepts certain options passed using `ldflags` at build time which control the behavior of the resulting binary. | ||
OpenTofu accepts certain options passed using `ldflags` at build time which control the behavior of the resulting binary. | ||
|
||
### Dev Version Reporting | ||
|
||
OpenTF will include a `-dev` flag when reporting its own version (ex: 1.5.0-dev) unless `version.dev` is set to `no`: | ||
OpenTofu will include a `-dev` flag when reporting its own version (ex: 1.5.0-dev) unless `version.dev` is set to `no`: | ||
|
||
``` | ||
go build -ldflags "-w -s -X 'github.com/opentofu/opentofu/version.dev=no'" -o bin/ . | ||
``` | ||
|
||
### Experimental Features | ||
|
||
Experimental features of OpenTF will be disabled unless `main.experimentsAllowed` is set to `yes`: | ||
Experimental features of OpenTofu will be disabled unless `main.experimentsAllowed` is set to `yes`: | ||
|
||
``` | ||
go build -ldflags "-w -s -X 'main.experimentsAllowed=yes'" -o bin/ . | ||
``` | ||
|
||
## Go Options | ||
|
||
For the most part, the OpenTF release process relies on the Go toolchain defaults for the target operating system and processor architecture. | ||
For the most part, the OpenTofu release process relies on the Go toolchain defaults for the target operating system and processor architecture. | ||
|
||
### `CGO_ENABLED` | ||
|
||
One exception is the `CGO_ENABLED` option, which is set explicitly when building OpenTF binaries. For most platforms, we build with `CGO_ENABLED=0` in order to produce a statically linked binary. For MacOS/Darwin operating systems, we build with `CGO_ENABLED=1` to avoid a platform-specific issue with DNS resolution. | ||
One exception is the `CGO_ENABLED` option, which is set explicitly when building OpenTofu binaries. For most platforms, we build with `CGO_ENABLED=0` in order to produce a statically linked binary. For MacOS/Darwin operating systems, we build with `CGO_ENABLED=1` to avoid a platform-specific issue with DNS resolution. | ||
|
||
|
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
This is a draft migration guide. Pull requests changing functionality in a backwards-incompatible way should update this guide. Eventually, we might make this either a public guide, or turn it into an automated `opentf` binary subcommand. | ||
This is a draft migration guide. Pull requests changing functionality in a backwards-incompatible way should update this guide. Eventually, we might make this either a public guide, or turn it into an automated `tofu` binary subcommand. | ||
|
||
- <Content> |
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
Oops, something went wrong.