Hi,
I have the same problem as @MigueldeCarvalho.
It seems that the 2.2.3 release has introduced a change incompatible with the current PKGBUILD which patches the code to install terraform versions and set the version file in /var/lib/tfenv/
. The current patch does not work at all because we're seeing tfenv
trying to make changes in /opt/tfenv/
Here's my patch to get everything working again
diff --git a/PKGBUILD b/PKGBUILD
index 93e9f58..2b8dc96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Maintainer: Oliver "OJFord" Ford <dev.aur@ojford.com>
pkgname=tfenv
pkgver=2.2.3
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="Terraform version manager inspired by rbenv"
arch=("x86_64")
@@ -28,6 +28,7 @@ package() {
mkdir -p "${pkgdir}/opt/tfenv/bin"
# This patches tfenv to use a separate dir for versions and the default version
+ sed -i 's:${TFENV_CONFIG_DIR}/version:/var/lib/tfenv/version:g' libexec/tfenv-*
sed -i 's:${TFENV_ROOT}/version:/var/lib/tfenv/version:g' libexec/tfenv-*
ln -s "/opt/tfenv/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
Hope this helps
Pinned Comments
T4cC0re commented on 2020-04-20 17:53 (UTC)
tfenv 2.0!
Also some under the hood improvements to the way this is packaged