Hi, please can you add arm64 support to the PKGBUILD? Thanks!
Search Criteria
Package Details: tfenv 2.2.3-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) |
Last Packager: | T4cC0re |
Votes: | 15 |
Popularity: | 0.197360 |
First Submitted: | 2018-02-26 14:36 (UTC) |
Last Updated: | 2022-03-22 11:42 (UTC) |
Dependencies (1)
Required by (16)
- arkade-bin (requires terraform) (optional)
- aztfy (requires terraform) (optional)
- cdktf-cli (requires terraform)
- k3sup-bin (requires terraform) (optional)
- kubergrunt (requires terraform) (optional)
- porter-bin (requires terraform) (optional)
- terraform-ls-bin (requires terraform) (optional)
- terraform-provider-acme (requires terraform) (optional)
- terraform-provider-acme-bin (requires terraform) (optional)
- terraform-provider-lxd (requires terraform)
- terraform-provider-openstack (requires terraform)
- terraform-provider-softlayer (requires terraform)
- terraformer-bin (requires terraform)
- terrax (requires terraform)
- tfautomv-bin (requires terraform) (optional)
- vpn-minute (requires terraform)
Sources (1)
trouter commented on 2023-01-13 21:23 (UTC)
OJFord commented on 2022-03-16 21:21 (UTC) (edited on 2022-03-16 21:22 (UTC) by OJFord)
@T4cC0re Fair enough! I still haven't encountered the problem, (nor has it managed to create them in /opt) though it's not immediately clear to me why.
T4cC0re commented on 2022-03-16 19:49 (UTC)
@OJFord this is to ensure, that tfenv can be installed system-wide without requiring root permissions to install new versions. The patched target directory is writable to users in the tfenv group, which you can add your own user to.
Considering that it is apparent you did not thoroughly test the version you packaged I removed you as a co-maintainer. I will update the package myself in the coming days.
OJFord commented on 2022-03-16 17:47 (UTC)
@WhiteAnthrax I'm not sure if there's some comments lost here, but certainly I'm lacking some context - what's the motivation for the 'use a separate dir for versions and the default version' sed patch?
Seems inevitably brittle, I'm just not sure it's worth the maintenance burden. Or why it's Arch specific for that matter, is there an upstream issue/PR?
ghthor commented on 2022-03-16 16:23 (UTC)
Patch by @ribugent is working, thanks!
alxndr13 commented on 2022-03-11 13:03 (UTC)
@ribugent thanks, the fix worked.
ribugent commented on 2022-03-10 07:19 (UTC)
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
MigueldeCarvalho commented on 2022-03-08 11:31 (UTC)
Hey, I am getting this error with new v2.2.3
version '1.1.3' is not installed (set by /home/mike/Documents/Customers/PL/pupil-cloud-terraform/.terraform-version). Installing now as TFENV_AUTO_INSTALL==true
Installing Terraform v1.1.3
Downloading release tarball from https://releases.hashicorp.com/terraform/1.1.3/terraform_1.1.3_linux_amd64.zip
####################################################################################################################################################################################### 100.0%
Downloading SHA hash file from https://releases.hashicorp.com/terraform/1.1.3/terraform_1.1.3_SHA256SUMS
No keybase install found, skipping OpenPGP signature verification
mkdir: cannot create directory ‘/opt/tfenv/versions’: Permission denied
Failed to make directory /opt/tfenv/versions/1.1.3
/opt/tfenv/libexec/tfenv-exec: line 105: /opt/tfenv/versions/1.1.3/terraform: No such file or directory
Thanks
OJFord commented on 2022-03-05 13:20 (UTC)
Hi, I'd be happy to help if you're looking for an extra maintainer. (I flagged out of date last month and have some open PRs on tfenv, so have some interest in/awareness of new releases.)
DenisBY commented on 2021-04-30 09:26 (UTC)
Please update to 2.2.1 because of this issue https://github.com/tfutils/tfenv/issues/259
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