Skip to content

Conversation

@c0decafe
Copy link
Contributor

@c0decafe c0decafe commented Jan 1, 2026

Build/test:

  • `./scripts/lint-packages.sh packages/opentofu/build.sh`
  • `./build-package.sh -I -q -f opentofu`
  • install + `tofu version` reports `OpenTofu v1.11.2`

Initial packaging for OpenTofu v1.11.2.
Copilot AI review requested due to automatic review settings January 1, 2026 23:24

This comment was marked as spam.

@robertkirkman
Copy link
Member

I am curious about something, could you provide an example of what you are going to use opentofu for? For example, what opentofu commands will you run other than tofu version? I would like to check this in a little bit more detail than that.

@robertkirkman robertkirkman linked an issue Jan 2, 2026 that may be closed by this pull request
8 tasks
TERMUX_PKG_SRCURL=https://github.com/opentofu/opentofu/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ff95091fef8d413938025f7605311cf9b1ef2d1a1a19ee575dafa4ecf5774e0c
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="git"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin \
"${GOPATH}"/src/github.com/opentofu/opentofu/tofu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If TERMUX_PKG_BUILD_IN_SRC=true is specified this just becomes directly relative to the build directory.

Suggested change
"${GOPATH}"/src/github.com/opentofu/opentofu/tofu
src/github.com/opentofu/opentofu/tofu

Comment on lines +14 to +27
# Use the local Go toolchain (downloading alternate toolchains is not supported here).
export GOTOOLCHAIN=local

export GOPATH="${TERMUX_PKG_BUILDDIR}"

mkdir -p "${GOPATH}"/src/github.com/opentofu
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}"/src/github.com/opentofu/opentofu

cd "${GOPATH}"/src/github.com/opentofu/opentofu

local _goversion
_goversion="$(go env GOVERSION | sed 's/^go//')"
sed -i "s/^go [0-9.]*$/go ${_goversion}/" go.mod

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can skip all of this by just specifying TERMUX_PKG_BUILD_IN_SRC=true above.

Suggested change
# Use the local Go toolchain (downloading alternate toolchains is not supported here).
export GOTOOLCHAIN=local
export GOPATH="${TERMUX_PKG_BUILDDIR}"
mkdir -p "${GOPATH}"/src/github.com/opentofu
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}"/src/github.com/opentofu/opentofu
cd "${GOPATH}"/src/github.com/opentofu/opentofu
local _goversion
_goversion="$(go env GOVERSION | sed 's/^go//')"
sed -i "s/^go [0-9.]*$/go ${_goversion}/" go.mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Package]: Opentofu

3 participants