Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random error messages when cd'ing to different directories #984

Open
sanchitram1 opened this issue Mar 9, 2024 · 4 comments
Open

random error messages when cd'ing to different directories #984

sanchitram1 opened this issue Mar 9, 2024 · 4 comments

Comments

@sanchitram1
Copy link

.pkgx.yaml content in /analytics:

dependencies:
  python@3.11 gh ruff psql xc

Error:

 /itn $ cd ../analytics 
env -nodejs.org@18.16.0 -pnpm.io^8.10.5 -git-scm.org^2.42
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
warn: parse failure: google.github.io/snappy
Assertion failed: pkgx: env is being duped
env +python.org~3.11 +cli.github.com +astral.sh/ruff +postgresql.org +xcfile.dev +git-scm.org

Not sure what either error is - what else can I provide to help give more context?

Copy link

dosubot bot commented Mar 9, 2024

Hey @sanchitram1, nice to see you around again! Hope you're doing well.

From the error message you've shared, it seems like there are two main issues:

  1. warn: parse failure: google.github.io/snappy - This warning message is repeated multiple times, indicating that there's an issue with parsing the dependency google.github.io/snappy. However, this dependency is not listed in your .pkgx.yaml file. It's possible that this dependency is a sub-dependency of one of the dependencies you've listed, or it might be a leftover from a previous configuration.

  2. Assertion failed: pkgx: env is being duped - This error message suggests that there's a duplicate environment variable being set. The pkgx tool is designed to manage dependencies and environment variables, and it seems to have detected a conflict.

To help resolve these issues, here are a few steps you can take:

  • Check your other .pkgx.yaml files: The error messages might be related to another .pkgx.yaml file in a different directory. Check these files for any mention of google.github.io/snappy or duplicate environment variables.

  • Update your pkgx version: You might be using an outdated version of pkgx that has issues with parsing certain dependencies or handling environment variables. Make sure you're using the latest version, which is v1.1.6.

  • Check your environment variables: The env is being duped error suggests that there's a conflict with environment variables. Check your system's environment variables and any environment variables set in your .pkgx.yaml files for duplicates.

If none of these steps resolve the issue, it would be helpful if you could provide more information about your setup. Specifically, the contents of any other .pkgx.yaml files you're using, the version of pkgx you're running, and any relevant environment variables would be useful.

For more information on how pkgx handles .pkgx.yaml files, you can refer to the src/utils/devenv.ts file in the pkgx repository. This file contains the code that parses .pkgx.yaml files and manages dependencies and environment variables.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@jhheider
Copy link
Contributor

this is almost always a corrupt file in the pantry, due to a bad download. you should be able to cat ~/Library/Application\ Support/pkgx/pantry/projects/google.github.io/snappy/package.yml to see the problem, but pkgx --sync should clear it up.

@gaggle
Copy link
Contributor

gaggle commented Mar 14, 2024

I suddenly have this problem too, and it doesn't go away with pkgx --sync:

$ cd test
Assertion failed: pkgx: env is being duped
env +postgresql.org=15.2.0 +git-scm.org
$ cat .pkgx.yml
dependencies:
  postgresql.org: =15.2.0
$ pkgx --sync
Assertion failed: pkgx: env is being duped
TERMINFO_DIRS=/usr/share/terminfo:/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share/terminfo
SSL_CERT_FILE=/Users/x/.pkgx/curl.se/ca-certs/v2023.8.22/ssl/cert.pem
PYTHONPATH="/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib/python3.11/site-packages${PYTHONPATH:+:$PYTHONPATH}"
GIT_TEMPLATE_DIR=/Users/x/.pkgx/git-scm.org/v2.42.0/share/git-core/templates
GIT_SSL_CAINFO=/Users/x/.pkgx/curl.se/ca-certs/v2023.8.22/ssl/cert.pem
PATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/bin:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/bin:/Users/x/.pkgx/openssl.org/v1.1.1w/bin:/Users/x/.pkgx/gnu.org/readline/v8.2.0/bin:/Users/x/.pkgx/lz4.org/v1.9.4/bin:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/bin:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/bin:/Users/x/.pkgx/unicode.org/v73.2.0/bin:/Users/x/.pkgx/unicode.org/v73.2.0/sbin:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/bin:/Users/x/.pkgx/curl.se/v8.3.0/bin:/Users/x/.pkgx/perl.org/v5.38.0/bin:/Users/x/.pkgx/libexpat.github.io/v2.5.0/bin:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/bin:/Users/x/.pkgx/postgresql.org/v15.2.0/bin:/Users/x/.pkgx/git-scm.org/v2.42.0/bin:/Users/x/.pkgx/unicode.org/v71.1.0/bin:/Users/x/.pkgx/unicode.org/v71.1.0/sbin${PATH:+:$PATH}"
CPATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/include:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/include:/Users/x/.pkgx/openssl.org/v1.1.1w/include:/Users/x/.pkgx/gnu.org/readline/v8.2.0/include:/Users/x/.pkgx/zlib.net/v1.3.0/include:/Users/x/.pkgx/lz4.org/v1.9.4/include:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/include:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/include:/Users/x/.pkgx/unicode.org/v73.2.0/include:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/include:/Users/x/.pkgx/curl.se/v8.3.0/include:/Users/x/.pkgx/libexpat.github.io/v2.5.0/include:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/include:/Users/x/.pkgx/postgresql.org/v15.2.0/include:/Users/x/.pkgx/unicode.org/v71.1.0/include${CPATH:+:$CPATH}"
LIBRARY_PATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib:/Users/x/.pkgx/openssl.org/v1.1.1w/lib:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib:/Users/x/.pkgx/zlib.net/v1.3.0/lib:/Users/x/.pkgx/lz4.org/v1.9.4/lib:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib:/Users/x/.pkgx/unicode.org/v73.2.0/lib:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/lib:/Users/x/.pkgx/curl.se/v8.3.0/lib:/Users/x/.pkgx/perl.org/v5.38.0/lib:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib:/Users/x/.pkgx/postgresql.org/v15.2.0/lib:/Users/x/.pkgx/unicode.org/v71.1.0/lib${LIBRARY_PATH:+:$LIBRARY_PATH}"
PKG_CONFIG_PATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib/pkgconfig:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib/pkgconfig:/Users/x/.pkgx/openssl.org/v1.1.1w/lib/pkgconfig:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib/pkgconfig:/Users/x/.pkgx/zlib.net/v1.3.0/lib/pkgconfig:/Users/x/.pkgx/lz4.org/v1.9.4/lib/pkgconfig:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib/pkgconfig:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib/pkgconfig:/Users/x/.pkgx/unicode.org/v73.2.0/lib/pkgconfig:/Users/x/.pkgx/curl.se/v8.3.0/lib/pkgconfig:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib/pkgconfig:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib/pkgconfig:/Users/x/.pkgx/postgresql.org/v15.2.0/lib/pkgconfig:/Users/x/.pkgx/unicode.org/v71.1.0/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
XDG_DATA_DIRS="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/share:/Users/x/.pkgx/gnu.org/readline/v8.2.0/share:/Users/x/.pkgx/zlib.net/v1.3.0/share:/Users/x/.pkgx/lz4.org/v1.9.4/share:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/share:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/share:/Users/x/.pkgx/unicode.org/v73.2.0/share:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/share:/Users/x/.pkgx/curl.se/v8.3.0/share:/Users/x/.pkgx/libexpat.github.io/v2.5.0/share:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/share:/Users/x/.pkgx/postgresql.org/v15.2.0/share:/Users/x/.pkgx/git-scm.org/v2.42.0/share:/Users/x/.pkgx/unicode.org/v71.1.0/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
MANPATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share/man:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/share/man:/Users/x/.pkgx/gnu.org/readline/v8.2.0/share/man:/Users/x/.pkgx/zlib.net/v1.3.0/share/man:/Users/x/.pkgx/lz4.org/v1.9.4/share/man:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/share/man:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/share/man:/Users/x/.pkgx/unicode.org/v73.2.0/share/man:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/share/man:/Users/x/.pkgx/curl.se/v8.3.0/share/man:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/share/man:/Users/x/.pkgx/unicode.org/v71.1.0/share/man:${MANPATH}:/usr/share/man"
LD_LIBRARY_PATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib:/Users/x/.pkgx/openssl.org/v1.1.1w/lib:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib:/Users/x/.pkgx/zlib.net/v1.3.0/lib:/Users/x/.pkgx/lz4.org/v1.9.4/lib:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib:/Users/x/.pkgx/unicode.org/v73.2.0/lib:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/lib:/Users/x/.pkgx/curl.se/v8.3.0/lib:/Users/x/.pkgx/perl.org/v5.38.0/lib:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib:/Users/x/.pkgx/postgresql.org/v15.2.0/lib:/Users/x/.pkgx/unicode.org/v71.1.0/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
DYLD_FALLBACK_LIBRARY_PATH="/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib:/Users/x/.pkgx/openssl.org/v1.1.1w/lib:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib:/Users/x/.pkgx/zlib.net/v1.3.0/lib:/Users/x/.pkgx/lz4.org/v1.9.4/lib:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib:/Users/x/.pkgx/unicode.org/v73.2.0/lib:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/lib:/Users/x/.pkgx/curl.se/v8.3.0/lib:/Users/x/.pkgx/perl.org/v5.38.0/lib:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib:/Users/x/.pkgx/postgresql.org/v15.2.0/lib:/Users/x/.pkgx/unicode.org/v71.1.0/lib${DYLD_FALLBACK_LIBRARY_PATH:+:$DYLD_FALLBACK_LIBRARY_PATH}"
$ cd ..
env -postgresql.org=15.2.0 -git-scm.org
$ cd test
Assertion failed: pkgx: env is being duped
env +postgresql.org=15.2.0 +git-scm.org
$ pkgx --version
pkgx 1.1.6

The Assertion failed message only seems to appear with postgresql.org dependency, if I have other dependencies all is well.

Since @dosubot mentions this relates to environment variables, here are mine listed out for both outside pkgx and inside the dev'd folder, in case its relevant to this failure
$ cd ..
env -postgresql.org=15.2.0 -git-scm.org
$ env
COLORTERM=truecolor
COMMAND_MODE=unix2003
HOME=/Users/x
LC_CTYPE=UTF-8
LOGNAME=x
PATH=/usr/local/bin:/usr/local/sbin:/opt/homebrew/opt/curl/bin:/Users/x/Library/pnpm:/Users/x/Library/Application\ Support/JetBrains/Toolbox/scripts:/Users/x/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL=/bin/zsh
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.QvIYyqPJpm/Listeners
SSH_SOCKET_DIR=~/.ssh
TERM=xterm-256color
TERM_PROGRAM=WarpTerminal
TERM_PROGRAM_VERSION=v0.2024.03.05.08.02.stable_01
TMPDIR=/var/folders/zr/4mjs6q696lv0qg_7d09yf6l40000gn/T/
USER=x
WARP_COMBINED_PROMPT_COMMAND_GRID=0
WARP_HONOR_PS1=0
WARP_IS_LOCAL_SHELL_SESSION=1
WARP_USE_SSH_WRAPPER=1
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
__CFBundleIdentifier=dev.warp.Warp-Stable
__CF_USER_TEXT_ENCODING=0x1F5:0:0
SHLVL=1
PWD=/Users/x/Projects
OLDPWD=/Users/x/Projects/test
HOMEBREW_PREFIX=/usr/local
HOMEBREW_CELLAR=/usr/local/Cellar
HOMEBREW_REPOSITORY=/usr/local/Homebrew
MANPATH=/usr/local/share/man:/usr/local/share/man:::
INFOPATH=/usr/local/share/info:/usr/local/share/info:
NVM_DIR=/Users/x/.nvm
MOB_OPEN_COMMAND=idea %s
PNPM_HOME=/Users/x/Library/pnpm
CONDA_CHANGEPS1=false
_=/usr/bin/env
$ cd test
Assertion failed: pkgx: env is being duped
env +postgresql.org=15.2.0 +git-scm.org
$ env
COLORTERM=truecolor
COMMAND_MODE=unix2003
HOME=/Users/x
LC_CTYPE=UTF-8
LOGNAME=x
PATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/bin:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/bin:/Users/x/.pkgx/openssl.org/v1.1.1w/bin:/Users/x/.pkgx/gnu.org/readline/v8.2.0/bin:/Users/x/.pkgx/lz4.org/v1.9.4/bin:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/bin:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/bin:/Users/x/.pkgx/unicode.org/v73.2.0/bin:/Users/x/.pkgx/unicode.org/v73.2.0/sbin:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/bin:/Users/x/.pkgx/curl.se/v8.3.0/bin:/Users/x/.pkgx/perl.org/v5.38.0/bin:/Users/x/.pkgx/libexpat.github.io/v2.5.0/bin:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/bin:/Users/x/.pkgx/postgresql.org/v15.2.0/bin:/Users/x/.pkgx/git-scm.org/v2.42.0/bin:/Users/x/.pkgx/unicode.org/v71.1.0/bin:/Users/x/.pkgx/unicode.org/v71.1.0/sbin:/usr/local/bin:/usr/local/sbin:/opt/homebrew/opt/curl/bin:/Users/x/Library/pnpm:/Users/x/Library/Application\ Support/JetBrains/Toolbox/scripts:/Users/x/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL=/bin/zsh
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.QvIYyqPJpm/Listeners
SSH_SOCKET_DIR=~/.ssh
TERM=xterm-256color
TERM_PROGRAM=WarpTerminal
TERM_PROGRAM_VERSION=v0.2024.03.05.08.02.stable_01
TMPDIR=/var/folders/zr/4mjs6q696lv0qg_7d09yf6l40000gn/T/
USER=x
WARP_COMBINED_PROMPT_COMMAND_GRID=0
WARP_HONOR_PS1=0
WARP_IS_LOCAL_SHELL_SESSION=1
WARP_USE_SSH_WRAPPER=1
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
__CFBundleIdentifier=dev.warp.Warp-Stable
__CF_USER_TEXT_ENCODING=0x1F5:0:0
SHLVL=1
PWD=/Users/x/Projects/test
OLDPWD=/Users/x/Projects
HOMEBREW_PREFIX=/usr/local
HOMEBREW_CELLAR=/usr/local/Cellar
HOMEBREW_REPOSITORY=/usr/local/Homebrew
MANPATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share/man:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/share/man:/Users/x/.pkgx/gnu.org/readline/v8.2.0/share/man:/Users/x/.pkgx/zlib.net/v1.3.0/share/man:/Users/x/.pkgx/lz4.org/v1.9.4/share/man:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/share/man:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/share/man:/Users/x/.pkgx/unicode.org/v73.2.0/share/man:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/share/man:/Users/x/.pkgx/curl.se/v8.3.0/share/man:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/share/man:/Users/x/.pkgx/unicode.org/v71.1.0/share/man:/usr/local/share/man:/usr/local/share/man::::/usr/share/man
INFOPATH=/usr/local/share/info:/usr/local/share/info:
NVM_DIR=/Users/x/.nvm
MOB_OPEN_COMMAND=idea %s
PNPM_HOME=/Users/x/Library/pnpm
CONDA_CHANGEPS1=false
TERMINFO_DIRS=/usr/share/terminfo:/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share/terminfo
SSL_CERT_FILE=/Users/x/.pkgx/curl.se/ca-certs/v2023.8.22/ssl/cert.pem
PYTHONPATH=/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib/python3.11/site-packages
GIT_TEMPLATE_DIR=/Users/x/.pkgx/git-scm.org/v2.42.0/share/git-core/templates
GIT_SSL_CAINFO=/Users/x/.pkgx/curl.se/ca-certs/v2023.8.22/ssl/cert.pem
CPATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/include:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/include:/Users/x/.pkgx/openssl.org/v1.1.1w/include:/Users/x/.pkgx/gnu.org/readline/v8.2.0/include:/Users/x/.pkgx/zlib.net/v1.3.0/include:/Users/x/.pkgx/lz4.org/v1.9.4/include:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/include:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/include:/Users/x/.pkgx/unicode.org/v73.2.0/include:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/include:/Users/x/.pkgx/curl.se/v8.3.0/include:/Users/x/.pkgx/libexpat.github.io/v2.5.0/include:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/include:/Users/x/.pkgx/postgresql.org/v15.2.0/include:/Users/x/.pkgx/unicode.org/v71.1.0/include
LIBRARY_PATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib:/Users/x/.pkgx/openssl.org/v1.1.1w/lib:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib:/Users/x/.pkgx/zlib.net/v1.3.0/lib:/Users/x/.pkgx/lz4.org/v1.9.4/lib:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib:/Users/x/.pkgx/unicode.org/v73.2.0/lib:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/lib:/Users/x/.pkgx/curl.se/v8.3.0/lib:/Users/x/.pkgx/perl.org/v5.38.0/lib:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib:/Users/x/.pkgx/postgresql.org/v15.2.0/lib:/Users/x/.pkgx/unicode.org/v71.1.0/lib
PKG_CONFIG_PATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib/pkgconfig:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib/pkgconfig:/Users/x/.pkgx/openssl.org/v1.1.1w/lib/pkgconfig:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib/pkgconfig:/Users/x/.pkgx/zlib.net/v1.3.0/lib/pkgconfig:/Users/x/.pkgx/lz4.org/v1.9.4/lib/pkgconfig:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib/pkgconfig:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib/pkgconfig:/Users/x/.pkgx/unicode.org/v73.2.0/lib/pkgconfig:/Users/x/.pkgx/curl.se/v8.3.0/lib/pkgconfig:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib/pkgconfig:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib/pkgconfig:/Users/x/.pkgx/postgresql.org/v15.2.0/lib/pkgconfig:/Users/x/.pkgx/unicode.org/v71.1.0/lib/pkgconfig
XDG_DATA_DIRS=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/share:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/share:/Users/x/.pkgx/gnu.org/readline/v8.2.0/share:/Users/x/.pkgx/zlib.net/v1.3.0/share:/Users/x/.pkgx/lz4.org/v1.9.4/share:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/share:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/share:/Users/x/.pkgx/unicode.org/v73.2.0/share:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/share:/Users/x/.pkgx/curl.se/v8.3.0/share:/Users/x/.pkgx/libexpat.github.io/v2.5.0/share:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/share:/Users/x/.pkgx/postgresql.org/v15.2.0/share:/Users/x/.pkgx/git-scm.org/v2.42.0/share:/Users/x/.pkgx/unicode.org/v71.1.0/share
LD_LIBRARY_PATH=/Users/x/.pkgx/invisible-island.net/ncurses/v6.4.0/lib:/Users/x/.pkgx/tukaani.org/xz/v5.4.5/lib:/Users/x/.pkgx/openssl.org/v1.1.1w/lib:/Users/x/.pkgx/gnu.org/readline/v8.2.0/lib:/Users/x/.pkgx/zlib.net/v1.3.0/lib:/Users/x/.pkgx/lz4.org/v1.9.4/lib:/Users/x/.pkgx/gnome.org/libxml2/v2.11.4/lib:/Users/x/.pkgx/gnome.org/libxslt/v1.1.39/lib:/Users/x/.pkgx/unicode.org/v73.2.0/lib:/Users/x/.pkgx/gnu.org/gettext/v0.21.1/lib:/Users/x/.pkgx/curl.se/v8.3.0/lib:/Users/x/.pkgx/perl.org/v5.38.0/lib:/Users/x/.pkgx/libexpat.github.io/v2.5.0/lib:/Users/x/.pkgx/rockdaboot.github.io/libpsl/v0.21.5/lib:/Users/x/.pkgx/postgresql.org/v15.2.0/lib:/Users/x/.pkgx/unicode.org/v71.1.0/lib
PKGX_POWDER=postgresql.org=15.2.0 git-scm.org
PKGX_PKGENV=invisible-island.net/ncurses=6.4.0 curl.se/ca-certs=2023.8.22 tukaani.org/xz=5.4.5 openssl.org=1.1.1w gnu.org/readline=8.2.0 zlib.net=1.3.0 lz4.org=1.9.4 gnome.org/libxml2=2.11.4 gnome.org/libxslt=1.1.39 unicode.org=73.2.0 gnu.org/gettext=0.21.1 curl.se=8.3.0 perl.org=5.38.0 libexpat.github.io=2.5.0 rockdaboot.github.io/libpsl=0.21.5 postgresql.org=15.2.0 git-scm.org=2.42.0 unicode.org=71.1.0
_=/usr/bin/env
$ 

@jhheider
Copy link
Contributor

Eeeeenteresting. I can guess exactly why:

The error comes from here:

async function mkenv({installations}: {installations: Installation[]}) {
const projects = new Set(installations.map(x => x.pkg.project))
console.assert(projects.size == installations.length, "pkgx: env is being duped")

And as of this PR: pkgxdev/libpkgx#61, on January 27th, libpkgx allows multiple versions of unicode in the environment, specifically to deal with postgresql requiring v73 and most of our other packages built for v71. So, it is both the case that the assertion is correct, and the behavior is also correct.

Due to that PR, the assertion is outdated, since we can, now, have more distinct packages than unique packages. So, good find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants