Skip to content

Instantly share code, notes, and snippets.

@ackalker
ackalker / tests-failing.log
Created January 30, 2022 17:19
Output of 'bats test' before and after applying bc4c73a
bats warning: duplicate test name(s) in /home/miki/.pyenv/plugins/pyenv-virtualenv/test/deactivate.bats: test_deactivate_virtualenv_-28quiet-29
1..97
ok 1 activate virtualenv from current version
ok 2 activate virtualenv from current version (quiet)
ok 3 activate virtualenv from current version (verbose)
ok 4 activate virtualenv from current version (without pyenv-virtualenv-init)
ok 5 activate virtualenv from current version (fish)
ok 6 activate virtualenv from current version (fish) (without pyenv-virtualenv-init)
ok 7 activate virtualenv from command-line argument
ok 8 activate virtualenv from command-line argument (without pyenv-virtualenv-init)
@ackalker
ackalker / test-pyenv-set-u-PS4.log
Created January 30, 2022 16:15
pyenv activate <env> fails due to unbound variable when set -u is in effect
+(./test-pyenv-set-u.bash:16): pyenv virtualenv system testenv
+(./test-pyenv-set-u.bash:9): pyenv(): local command
+(./test-pyenv-set-u.bash:10): pyenv(): command=virtualenv
+(./test-pyenv-set-u.bash:11): pyenv(): '[' 3 -gt 0 ']'
+(./test-pyenv-set-u.bash:12): pyenv(): shift
+(./test-pyenv-set-u.bash:15): pyenv(): case "$command" in
+(./test-pyenv-set-u.bash:20): pyenv(): command pyenv virtualenv system testenv
pyenv-virtualenv: `/home/miki/.pyenv/versions/testenv' already exists.
+(./test-pyenv-set-u.bash:17): echo created
created
[miki@miki-desktop ~]
$ set -u
[miki@miki-desktop ~]
$ pyenv virtualenv system testenv
Looking in links: /tmp/tmp5kvqd04i
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[miki@miki-desktop ~]
$ PYENV_DEBUG=1 pyenv activate testenv
+(/home/miki/.pyenv/bin/pyenv:23): enable -f /home/miki/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath
$ set -u
[miki@miki-desktop ~]
$ pyenv virtualenv system testenv
Looking in links: /tmp/tmp6nq443fa
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[miki@miki-desktop ~]
$ pyenv activate testenv
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
bash: _OLD_VIRTUAL_PATH: unbound variable
Script started on 2022-01-29 16:44:31+01:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/6" COLUMNS="159" LINES="43"]
[?2004h[miki@miki-desktop ~]
$ ]0;~set -u
[?2004l [?2004h[miki@miki-desktop ~]
$ ]0;~pyenv virtualenv system testenv
[?2004l Looking in links: /tmp/tmp5kvqd04i
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[?2004h[miki@miki-desktop ~]
$ ]0;~PYENV_DEBUG=1 pyenv activate testenv
Script started on 2022-01-29 16:37:00+01:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/6" COLUMNS="159" LINES="43"]
[?2004h[miki@miki-desktop ~]
$ ]0;~set -u
[?2004l [?2004h[miki@miki-desktop ~]
$ ]0;~pyenv virtualenv system testenv
[?2004l Looking in links: /tmp/tmp6nq443fa
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[?2004h[miki@miki-desktop ~]
$ ]0;~pyenv activate testenv
ninja: Entering directory `build'
[1/46] Generating git_sha1.h with a custom command.
[1/2] Installing files.
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/i915_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/i965_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/radeon_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/r200_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/nouveau_vieux_dri.so
installing /builddir/mesa-19.1.1/build/src/gallium/targets/dri/libgallium_dri.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/radeonsi_dri.so
i
3793: find library=libdl.so.2 [0]; searching
3793: search cache=/etc/ld.so.cache
3793: trying file=/usr/lib/libdl.so.2
3793:
3793: find library=libc.so.6 [0]; searching
3793: search cache=/etc/ld.so.cache
3793: trying file=/usr/lib/libc.so.6
3793:
3793:
3793: calling init: /usr/lib/libc.so.6
Script started on 2019-05-22 00:41:26+02:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/12" COLUMNS="95" LINES="26"]
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
Script started on 2019-05-22 00:40:26+02:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/12" COLUMNS="95" LINES="26"]
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'