Package Details: direnv 2.28.0-1

Git Clone URL: (read-only, click to copy)
Package Base: direnv
Description: a shell extension that manages your environment
Upstream URL:
Keywords: env shell
Licenses: MIT
Conflicts: direnv
Provides: direnv
Submitter: zimbatm
Maintainer: zimbatm (ShadowKyogre, rmorgans)
Last Packager: rmorgans
Votes: 79
Popularity: 2.27
First Submitted: 2013-11-17 16:03
Last Updated: 2021-03-12 23:40

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

mathicalee commented on 2021-01-11 22:06

Currently I get the following error:

go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now


Sorry, it was my mistake. I had go version 1.15.5 installed with nix, and it had some problem with many of the packages written in go, including yay. It's working again with go version 1.15.6.

dharrigan commented on 2021-01-09 10:45

Thank you. I see it has already been fixed. Thank you again. :)

zimbatm commented on 2021-01-09 10:33

It's probably because of this commit:

dharrigan commented on 2021-01-06 05:46


I think the latest (2.27.0-2) is broken, as it now installs here (note the /usr/usr directory)

❯ yay -Ql direnv
direnv /usr/
direnv /usr/share/
direnv /usr/share/licenses/
direnv /usr/share/licenses/direnv/
direnv /usr/share/licenses/direnv/LICENSE
direnv /usr/usr/
direnv /usr/usr/local/
direnv /usr/usr/local/bin/
direnv /usr/usr/local/bin/direnv
direnv /usr/usr/local/share/
direnv /usr/usr/local/share/fish/
direnv /usr/usr/local/share/fish/vendor_conf.d/
direnv /usr/usr/local/share/fish/vendor_conf.d/
direnv /usr/usr/local/share/man/
direnv /usr/usr/local/share/man/man1/
direnv /usr/usr/local/share/man/man1/direnv-fetchurl.1
direnv /usr/usr/local/share/man/man1/direnv-stdlib.1
direnv /usr/usr/local/share/man/man1/direnv.1
direnv /usr/usr/local/share/man/man1/direnv.toml.1

sardaukar commented on 2020-12-30 16:08

Bug upstream

Latest version broke the fish shell hook, now I get

~/.config/fish/ Expected end of the statement, but instead found end of the input
from sourcing file ~/.config/fish/
    called during startup

If I comment out

eval (direnv hook fish)

the warning goes away.

etcusrvar commented on 2020-12-05 21:31

Created upstream bug #729 on /tmp and noexec.

etcusrvar commented on 2020-12-04 22:22

fyi-- I created direnv-bin.

Maintainers-- you may want to add these lines to the PKGBUILD:


sylvite commented on 2020-12-04 14:44

I've gotten the same error as @RouNdeL and @maxweiss for a while.

It's because my /tmp is mounted noexec, and apparently go test expects it to be exec. I've gotten around this a few different ways.

  • export GOTMPDIR="${XDG_CACHE_HOME:-$HOME/.cache}"/go/tmp (mkdir if needed)
  • don't run the check-- yay -S --mflags --nocheck direnv
  • remount /tmp with exec option-- sudo mount -o remount,exec /tmp

maxweiss commented on 2020-11-30 23:56

I am getting the same build error that @RouNdeL showed, since trying to upgrade to 2.23 and above. Stuck on 2.22 on system now. Have tried building in a new clean environment, didn't help.

edapa commented on 2020-11-30 19:04

I just installed this in a fairly fresh arch install that didn't yet have some very common utilities installed. A few turned out to be required (gcc for cgo, and it looks like make is called in the package function). This patch makes them explicit dependencies:

diff --git a/PKGBUILD b/PKGBUILD
index bd17487..a4b5e27 100644
@@ -8,7 +8,7 @@ pkgdesc='a shell extension that manages your environment'
 arch=('x86_64' 'i686' 'armv7h' 'aarch64')
+makedepends=('go' 'gcc' 'make')

I looked for a way to send a PR, but didn't see one, so sorry if there is a better way to do this.