pkgx
pkgx copied to clipboard
Pkgx sometimes "forgets" to provide a dependency?
I've twice in the past two weeks had the case where it seems like the pkgx environment loses track of a dependency. I've captured the output below, for this issue note I pull in Erlang and gnu utils:
$ cat .pkgx.yml
dependencies:
erlang.org: =26.2.4
elixir-lang.org: =1.16.2
postgresql.org: =15.2.0
github.com/bats-core/bats-core: =1.11.0
gnu.org/bash: =5.2.21
gnu.org/coreutils: =9.5.0
gnu.org/grep: =3.11.0
tcl-lang.org/expect: =5.45.4
$ pkgx --version
pkgx 1.1.6
$ cat ~/.zshenv | grep pkgx
# pkgx
source <(pkgx --shellcode) # docs.pkgx.sh/shellcode
Here pkgx is providing Erlang, as expected:
$ which erl
~/.pkgx/erlang.org/v26.2.4/bin/erl
But it's not providing stat
:
$ which stat
/usr/bin/stat
But if I leave and come back stat
does get pkgx provided:
$ cd ..
env -gnu.org/coreutils=9.5.0 -erlang.org=26.2.4 -elixir-lang.org=1.16.2 -postgresql.org=15.2.0 -github.com/bats-core/bats-core=1.11.0 -gnu.org/bash=5.2.21 -gnu.org/grep=3.11.0 -tcl-lang.org/expect=5.45.4 -git-scm.org
cd%
$ cd perfect-elixir/
Assertion failed: pkgx: env is being duped
env +gnu.org/coreutils=9.5.0 +erlang.org=26.2.4 +elixir-lang.org=1.16.2 +postgresql.org=15.2.0 +github.com/bats-core/bats-core=1.11.0 +gnu.org/bash=5.2.21 +gnu.org/grep=3.11.0 +tcl-lang.org/expect=5.45.4 +git-scm.org
$ which stat
~/.pkgx/gnu.org/coreutils/v9.5.0/bin/stat
I haven't noticed what I do to cause this, but I'll try to look out for any patterns. Anyone have suggestions I can try?