SHA256
5
0
forked from pool/direnv
Files
direnv/resolve-bin-path.patch
Avindra Goolcharan 29fca80051 Accepting request 1233734 from home:avindra:branches:utilities
- update to 2.35.0:
  * doc: Add version requirement for load_dotenv option (#1326)
  * doc: fix broken link (#1327)
  * doc: update elvish docs (#1305)
  * docs: change Guix link to its package search. (#1268)
  * feat: add opam support (#1298)
  * fix: add NuShell into list of supported shells (#1260)
  * fix: close tmp file (#1272)
  * fix: direnv edit: use editor when EDITOR not found, closes #1246 (#1247)
  * fix: release script
  * fix: stdlib: enable flakes when use flake is used (#1299)
  * fix: stdlib: export GOBIN for layout_go (#1286)
  * fix: stdlib: update layout_python to resolve deprecation warning (#1176)
  * fix: using PWD in .env files (#1052)
  * test: Fix Murex python-layout test (#1293)
- create hook packages for fish, bash and zsh
- add resolve-bin-path.patch to fix exe path inside buildroot

OBS-URL: https://build.opensuse.org/request/show/1233734
OBS-URL: https://build.opensuse.org/package/show/utilities/direnv?expand=0&rev=36
2025-01-07 21:38:40 +00:00

17 lines
415 B
Diff

Hardcode binary full path
index 78c9557..45b3b7f 100644
--- a/internal/cmd/cmd_hook.go.1
+++ b/internal/cmd/cmd_hook.go
@@ -28,10 +28,7 @@ func cmdHookAction(_ Env, args []string) (err error) {
target = args[1]
}
- selfPath, err := os.Executable()
- if err != nil {
- return err
- }
+ selfPath := `/usr/bin/direnv`
// Convert Windows path if needed
selfPath = strings.Replace(selfPath, "\\", "/", -1)