Package Details: tfenv 3.0.0-2

Git Clone URL: https://aur.archlinux.org/tfenv.git (read-only, click to copy)
Package Base: tfenv
Description: Terraform version manager inspired by rbenv
Upstream URL: https://github.com/tfutils/tfenv
Keywords: terraform
Licenses: MIT
Conflicts: terraform
Provides: terraform, tfenv
Submitter: zephrax
Maintainer: T4cC0re (gmy, Daklon)
Last Packager: Daklon
Votes: 16
Popularity: 0.007468
First Submitted: 2018-02-26 14:36 (UTC)
Last Updated: 2023-05-14 00:20 (UTC)

Required by (17)

Sources (1)

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

  • Versions and the version file remain in /var/lib/tfenv/
  • Actual application is now installed to /opt/tfenv
  • Symlinks to /usr/bin are provided for both tfenv and terraform
  • Once you add your user to the tfenv group, you can manage versions as a non-root user

Latest Comments

« First ‹ Previous 1 2 3

shihanng commented on 2019-08-29 13:47 (UTC)

We should remove the ${srcdir}/${pkgname}/ from the for-loop?

    for i in `ls ${srcdir}/${pkgname}/libexec/`; do
        install -m755 "${srcdir}/${pkgname}/libexec/$i" "${pkgdir}/usr/local/libexec/$i"
    done

Also, it seems very likely that 1.0.1 broke the installation via tfenv as now it expects to find CHANGELOG.md but this PKGBUILD does not copy/install that file.

https://github.com/tfutils/tfenv/pull/113

There is also issue about where to install CHANGELOG.md because /usr/local/ (which I think the upstream expects it to be at) might not be a good idea.

Solution could be we install the whole repository and symlink tfenv/bin/* to /usr/local/bin/` but I am not sure if that is a good practice for AUR.

T4cC0re commented on 2019-08-26 09:46 (UTC)

@WhiteAnthrax applied your suggestion

WhiteAnthrax commented on 2019-08-21 04:41 (UTC) (edited on 2019-08-21 04:43 (UTC) by WhiteAnthrax)

--- /tmp/tfenv/PKGBUILD 2019-08-09 08:14:48.000000000 +0900
+++ tfenv/PKGBUILD  2019-08-21 13:40:19.873113328 +0900
@@ -18,7 +18,7 @@
 validpgpkeys=()

 package() {
-   cd "${srcdir}/${pkgname}"
+   cd "${srcdir}/${pkgname}-${pkgver}"
    mkdir -p "${pkgdir}/usr/local/bin"
    mkdir -p "${pkgdir}/usr/local/libexec"
    echo $srcdir

T4cC0re commented on 2019-08-08 23:15 (UTC)

I just adopted the package and applied the suggested fixes :)

shihanng commented on 2019-04-11 13:36 (UTC)

Hi zephrax, based on comments by hsa and nesth, I've created a patch as an attempt to improve this package. Would you be interested in merging this? https://github.com/shihanng/tfenv/commit/154fc37a92aeed75e21167b3159b3d3d590704e6

hsa commented on 2018-10-28 21:10 (UTC) (edited on 2018-10-28 21:11 (UTC) by hsa)

Upstream URL and sources have changed:

- https://github.com/Zordrak/tfenv
- git@github.com:Zordrak/tfenv.git

nesth commented on 2018-10-26 21:28 (UTC)

Why is terraform a dependency and the tfenv provided wrapper not included?