Last active
September 5, 2023 11:53
-
-
Save Jayman2000/999379e572b67a34dc393cb9f0214d9b to your computer and use it in GitHub Desktop.
A log used to report an issue with resholve: <https://github.com/abathur/resholve/issues/97>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch .local | |
Building ci.nix | |
these 19 derivations will be built: | |
/nix/store/32wnx1w89syk45i9r6y8cp7x5dlklrs0-testmod2-unresholved-unreleased.drv | |
/nix/store/4y4lbwjy7qiwnrjmq2snn7ri3jnsk3y3-testmod2-unresholved-unreleased-binlore.drv | |
/nix/store/86bfsa9bl94zmcm8angvkhrm2il1zbz3-more-binlore.drv | |
/nix/store/wkibki4v8rqrninfv171vj1y2l0fpsdl-resholve-0.9.0.drv | |
/nix/store/yizy6zfsamkjms86yv9racxwb8jy9ngs-more-binlore.drv | |
/nix/store/fi1v2k0c391p262bwl6xqb6w0w8rlaj0-testmod2-unreleased.drv | |
/nix/store/ck0x886z10933ch1wiz99whqjg6h570g-testmod2-unreleased-binlore.drv | |
/nix/store/js0baw1bfb1wxx1adnvv5rxwg38c53s6-testmod1-unresholved-unreleased.drv | |
/nix/store/yyn888s9kb5mpp12l86kapzbxig8ya9c-testmod1-unresholved-unreleased-binlore.drv | |
/nix/store/cknnzzr2m0qdfnn9q5l9d88qg7cp8vsp-more-binlore.drv | |
/nix/store/bavgnqknjl6471gzr3rw08nxrnwxzbq6-testmod1-unreleased.drv | |
/nix/store/s1sf32pbp7fcbdlfa95hnc6ncn5klc25-testmod1-unreleased-binlore.drv | |
/nix/store/g91hvxlxvgpv3m1pw28jx6nnrfk271zv-more-binlore.drv | |
/nix/store/46sj05qslsjbbr16dqp2cwx0c69vi9mk-testmod3-unreleased.drv | |
/nix/store/8hixvmq9azcdj1xpx9h5dvkbhlmrfsj3-resholved-script-bin.drv | |
/nix/store/922l5mxbmbljhfrpdh4xz8qlfbgwc71f-resholve-test.drv | |
/nix/store/az3q07awlw2hk4k415g4z5fjzq449zqi-resholved-script.drv | |
/nix/store/q7pfl2mrbh503lpv21amqazhzz7zzwqn-resholved-script-bin.drv | |
/nix/store/7x6rxn4jxamn4g629jdwy1hbcrdhlzaj-resholve-ci.drv | |
building '/nix/store/wkibki4v8rqrninfv171vj1y2l0fpsdl-resholve-0.9.0.drv'... | |
building '/nix/store/js0baw1bfb1wxx1adnvv5rxwg38c53s6-testmod1-unresholved-unreleased.drv'... | |
building '/nix/store/32wnx1w89syk45i9r6y8cp7x5dlklrs0-testmod2-unresholved-unreleased.drv'... | |
Sourcing python-remove-tests-dir-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing python-remove-bin-bytecode-hook.sh | |
Sourcing setuptools-build-hook | |
Using setuptoolsBuildPhase | |
Using setuptoolsShellHook | |
Sourcing pip-install-hook | |
Using pipInstallPhase | |
Sourcing python-imports-check-hook.sh | |
Using pythonImportsCheckPhase | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing setuptools-check-hook | |
Using setuptoolsCheckPhase | |
unpacking sources | |
unpacking source archive /nix/store/72dmlld8wz9f8jv2fr90jnblr761vrh1-repo | |
unpacking sources | |
unpacking source archive /nix/store/72dmlld8wz9f8jv2fr90jnblr761vrh1-repo | |
unpacking sources | |
unpacking source archive /nix/store/72dmlld8wz9f8jv2fr90jnblr761vrh1-repo | |
source root is repo | |
source root is repo/tests/nix/libressl | |
patching sources | |
configuring | |
source root is repo/tests/nix/openssl | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file repo/wordswurst.nix | |
patching sources | |
patching sources | |
no configure script, doing nothing | |
configuring | |
building | |
no Makefile or custom buildPhase, doing nothing | |
configuring | |
installing | |
no configure script, doing nothing | |
building | |
post-installation fixup | |
no Makefile or custom buildPhase, doing nothing | |
installing | |
shrinking RPATHs of ELF executables and libraries in /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased | |
checking for references to /build/ in /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased... | |
post-installation fixup | |
patching script interpreter paths in /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/bin | |
no configure script, doing nothing | |
building | |
Executing setuptoolsBuildPhase | |
shrinking RPATHs of ELF executables and libraries in /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased | |
checking for references to /build/ in /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased... | |
building '/nix/store/yyn888s9kb5mpp12l86kapzbxig8ya9c-testmod1-unresholved-unreleased-binlore.drv'... | |
patching script interpreter paths in /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased | |
/nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/libexec/invokeme: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash" | |
stripping (with command strip and flags -S -p) in /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/libexec /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/bin | |
building '/nix/store/4y4lbwjy7qiwnrjmq2snn7ri3jnsk3y3-testmod2-unresholved-unreleased-binlore.drv'... | |
generating binlore for /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased by running: | |
/nix/store/jmignvx82sz0n6p2dy8i35c7np7kmcq5-yara-4.3.1/bin/yara --scan-list --recursive /nix/store/jf8bpr2dbcprc4mpyplg7hv16lzw327x-execers.yar <(printf '%s\n' /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/lib: could not open file | |
error scanning /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/libexec: could not open file | |
binlore for /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased written to /nix/store/fk4nyx2zj0d2nx4rly5281lgfsycjz0x-testmod1-unresholved-unreleased-binlore | |
generating binlore for /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased by running: | |
/nix/store/jmignvx82sz0n6p2dy8i35c7np7kmcq5-yara-4.3.1/bin/yara --scan-list --recursive /nix/store/jf8bpr2dbcprc4mpyplg7hv16lzw327x-execers.yar <(printf '%s\n' /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/lib: could not open file | |
binlore for /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased written to /nix/store/lvndmflhnhs98hvjg7qmfp64mxvvwnfk-testmod2-unresholved-unreleased-binlore | |
building '/nix/store/86bfsa9bl94zmcm8angvkhrm2il1zbz3-more-binlore.drv'... | |
building '/nix/store/yizy6zfsamkjms86yv9racxwb8jy9ngs-more-binlore.drv'... | |
substituteStream(): WARNING: pattern '/nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/' doesn't match anything in file '/nix/store/iddzq4wijxa47xs9lgp7sd1b2xmip2xn-more-binlore/wrappers' | |
substituteStream(): WARNING: pattern '/nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased/' doesn't match anything in file '/nix/store/asz5sjr6h72z5am498rzlzzfr21b8f80-more-binlore/wrappers' | |
running bdist_wheel | |
running build | |
running build_py | |
creating build | |
creating build/lib | |
creating build/lib/_resholve | |
copying _resholve/version.py -> build/lib/_resholve | |
copying _resholve/__init__.py -> build/lib/_resholve | |
copying _resholve/strings.py -> build/lib/_resholve | |
running egg_info | |
creating resholve.egg-info | |
writing resholve.egg-info/PKG-INFO | |
writing top-level names to resholve.egg-info/top_level.txt | |
writing dependency_links to resholve.egg-info/dependency_links.txt | |
writing manifest file 'resholve.egg-info/SOURCES.txt' | |
reading manifest file 'resholve.egg-info/SOURCES.txt' | |
writing manifest file 'resholve.egg-info/SOURCES.txt' | |
running build_scripts | |
creating build/scripts-2.7 | |
copying and adjusting resholve -> build/scripts-2.7 | |
changing mode of build/scripts-2.7/resholve from 644 to 755 | |
installing to build/bdist.linux-x86_64/wheel | |
running install | |
running install_lib | |
creating build/bdist.linux-x86_64 | |
creating build/bdist.linux-x86_64/wheel | |
creating build/bdist.linux-x86_64/wheel/_resholve | |
copying build/lib/_resholve/version.py -> build/bdist.linux-x86_64/wheel/_resholve | |
copying build/lib/_resholve/__init__.py -> build/bdist.linux-x86_64/wheel/_resholve | |
copying build/lib/_resholve/strings.py -> build/bdist.linux-x86_64/wheel/_resholve | |
running install_egg_info | |
Copying resholve.egg-info to build/bdist.linux-x86_64/wheel/resholve-0.9.0-py2.7.egg-info | |
running install_scripts | |
creating build/bdist.linux-x86_64/wheel/resholve-0.9.0.data | |
creating build/bdist.linux-x86_64/wheel/resholve-0.9.0.data/scripts | |
copying build/scripts-2.7/resholve -> build/bdist.linux-x86_64/wheel/resholve-0.9.0.data/scripts | |
changing mode of build/bdist.linux-x86_64/wheel/resholve-0.9.0.data/scripts/resholve to 755 | |
adding license file "LICENSE" (matched pattern "LICEN[CS]E*") | |
creating build/bdist.linux-x86_64/wheel/resholve-0.9.0.dist-info/WHEEL | |
creating 'dist/resholve-0.9.0-py2-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it | |
adding '_resholve/__init__.py' | |
adding '_resholve/strings.py' | |
adding '_resholve/version.py' | |
adding 'resholve-0.9.0.data/scripts/resholve' | |
adding 'resholve-0.9.0.dist-info/LICENSE' | |
adding 'resholve-0.9.0.dist-info/METADATA' | |
adding 'resholve-0.9.0.dist-info/WHEEL' | |
adding 'resholve-0.9.0.dist-info/top_level.txt' | |
adding 'resholve-0.9.0.dist-info/RECORD' | |
removing build/bdist.linux-x86_64/wheel | |
Finished executing setuptoolsBuildPhase | |
installing | |
Executing pipInstallPhase | |
/build/repo/dist /build/repo | |
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. | |
Processing ./resholve-0.9.0-py2-none-any.whl | |
Installing collected packages: resholve | |
Successfully installed resholve-0.9.0 | |
/build/repo | |
Finished executing pipInstallPhase | |
pythonOutputDistPhase | |
Executing pythonOutputDistPhase | |
Finished executing pythonOutputDistPhase | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0 | |
checking for references to /build/ in /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0... | |
gzipping man pages under /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/share/man/ | |
patching script interpreter paths in /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0 | |
stripping (with command strip and flags -S -p) in /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/lib /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin | |
shrinking RPATHs of ELF executables and libraries in /nix/store/sd8izl18jibp8mlrdzx14n107b33v9mn-resholve-0.9.0-dist | |
checking for references to /build/ in /nix/store/sd8izl18jibp8mlrdzx14n107b33v9mn-resholve-0.9.0-dist... | |
patching script interpreter paths in /nix/store/sd8izl18jibp8mlrdzx14n107b33v9mn-resholve-0.9.0-dist | |
Rewriting #!/nix/store/r3qy746fdmdx402xy6x1ymn0n8rx013a-python-2.7.18.6/bin/python2.7 to #!/nix/store/r3qy746fdmdx402xy6x1ymn0n8rx013a-python-2.7.18.6 | |
wrapping `/nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve'... | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
running install tests | |
no Makefile or custom installCheckPhase, doing nothing | |
pythonCatchConflictsPhase | |
pythonRemoveBinBytecodePhase | |
pythonImportsCheckPhase | |
Executing pythonImportsCheckPhase | |
setuptoolsCheckPhase | |
Executing setuptoolsCheckPhase | |
running test | |
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. | |
running egg_info | |
writing resholve.egg-info/PKG-INFO | |
writing top-level names to resholve.egg-info/top_level.txt | |
writing dependency_links to resholve.egg-info/dependency_links.txt | |
reading manifest file 'resholve.egg-info/SOURCES.txt' | |
writing manifest file 'resholve.egg-info/SOURCES.txt' | |
running build_ext | |
---------------------------------------------------------------------- | |
Ran 0 tests in 0.000s | |
OK | |
Finished executing setuptoolsCheckPhase | |
building '/nix/store/922l5mxbmbljhfrpdh4xz8qlfbgwc71f-resholve-test.drv'... | |
building '/nix/store/8hixvmq9azcdj1xpx9h5dvkbhlmrfsj3-resholved-script-bin.drv'... | |
building '/nix/store/q7pfl2mrbh503lpv21amqazhzz7zzwqn-resholved-script-bin.drv'... | |
building '/nix/store/az3q07awlw2hk4k415g4z5fjzq449zqi-resholved-script.drv'... | |
building '/nix/store/fi1v2k0c391p262bwl6xqb6w0w8rlaj0-testmod2-unreleased.drv'... | |
unpacking sources | |
[resholve context] : invoking resholve with PWD=/nix/store/ai5k2h50bhh2c5czk5qqqr4dy20q2i9k-resholved-script-bin | |
[resholve context] RESHOLVE_LORE=/nix/store/kisx130gsz9iq2ghwrsxbxad3cqx5qvi-more-binlore | |
[resholve context] RESHOLVE_INPUTS=/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite bin/resholved-script-bin | |
unpacking source archive /nix/store/72dmlld8wz9f8jv2fr90jnblr761vrh1-repo | |
[resholve context] : invoking resholve with PWD=/nix/store/gslkj872jsd55mx7qq7dsxf8lp2xsklv-resholved-script-bin | |
[resholve context] RESHOLVE_LORE=/nix/store/kisx130gsz9iq2ghwrsxbxad3cqx5qvi-more-binlore | |
[resholve context] RESHOLVE_INPUTS=/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin | |
[resholve context] RESHOLVE_INTERPRETER=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite bin/resholved-script-bin | |
[resholve context] : invoking resholve with PWD=/build | |
[resholve context] RESHOLVE_LORE=/nix/store/kisx130gsz9iq2ghwrsxbxad3cqx5qvi-more-binlore | |
[resholve context] RESHOLVE_INPUTS=/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin | |
[resholve context] RESHOLVE_INTERPRETER=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite /nix/store/4znsccmki5azd8rqm7yh53ihd0jmy52r-resholved-script | |
source root is repo | |
patching sources | |
configuring | |
unpacking sources | |
unpacking source archive /nix/store/vak5sz811xqmj9z700jk0y79xl7pxw8i-testmod2-unresholved-unreleased | |
source root is testmod2-unresholved-unreleased | |
no configure script, doing nothing | |
building | |
patching sources | |
build flags: SHELL=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash: line 1: nix-shell: command not found | |
installing | |
Sorry--the Makefile is a lie. I just use this for dev tasks atm. | |
See README.md / https://github.com/abathur/resholve | |
running tests | |
post-installation fixup | |
patching script interpreter paths in . | |
[resholve context] : invoking resholve with PWD=/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/asz5sjr6h72z5am498rzlzzfr21b8f80-more-binlore | |
[resholve context] RESHOLVE_EXECER='cannot:/nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/openssl can:/nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/c_rehash' | |
[resholve context] RESHOLVE_FIX=aliases | |
[resholve context] RESHOLVE_INPUTS=/nix/store/0zzx9skjkkkk37iyz4wlaw3a7zh4nbgy-shunit2-2.1.8/bin:/nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin:libexec:libexec/invokeme | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite bin/openssl.sh libexec/invokeme | |
./test.sh: interpreter directive changed from "#! /usr/bin/env bash" to "/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash" | |
./resholve: interpreter directive changed from "#!/usr/bin/env python2" to "/nix/store/r3qy746fdmdx402xy6x1ymn0n8rx013a-python-2.7.18.6/bin/python2" | |
./demo: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash" | |
Overwrote '/nix/store/ai5k2h50bhh2c5czk5qqqr4dy20q2i9k-resholved-script-bin/bin/resholved-script-bin' | |
Overwrote '/nix/store/gslkj872jsd55mx7qq7dsxf8lp2xsklv-resholved-script-bin/bin/resholved-script-bin' | |
Overwrote '/nix/store/4znsccmki5azd8rqm7yh53ihd0jmy52r-resholved-script' | |
Overwrote '/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin/openssl.sh' | |
Overwrote '/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme' | |
[resholve context] RESHOLVE_LORE=/nix/store/iddzq4wijxa47xs9lgp7sd1b2xmip2xn-more-binlore | |
[resholve context] RESHOLVE_INPUTS= | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite profile | |
Overwrote '/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/profile' | |
shrinking RPATHs of ELF executables and libraries in /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased | |
checking for references to /build/ in /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased... | |
patching script interpreter paths in /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin | |
building '/nix/store/ck0x886z10933ch1wiz99whqjg6h570g-testmod2-unreleased-binlore.drv'... | |
generating binlore for /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased by running: | |
/nix/store/jmignvx82sz0n6p2dy8i35c7np7kmcq5-yara-4.3.1/bin/yara --scan-list --recursive /nix/store/jf8bpr2dbcprc4mpyplg7hv16lzw327x-execers.yar <(printf '%s\n' /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/lib: could not open file | |
binlore for /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased written to /nix/store/j5d72n013qg1jgxhcg2f1kj5vdgnm39w-testmod2-unreleased-binlore | |
building '/nix/store/cknnzzr2m0qdfnn9q5l9d88qg7cp8vsp-more-binlore.drv'... | |
substituteStream(): WARNING: pattern '/nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/' doesn't match anything in file '/nix/store/5phrq79lmfq8wss9l3jwiy57c954p73y-more-binlore/execers' | |
substituteStream(): WARNING: pattern '/nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased/' doesn't match anything in file '/nix/store/5phrq79lmfq8wss9l3jwiy57c954p73y-more-binlore/wrappers' | |
building '/nix/store/bavgnqknjl6471gzr3rw08nxrnwxzbq6-testmod1-unreleased.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/3hrxa1si16s3ji4lii6nz2c06xl4zf2w-testmod1-unresholved-unreleased | |
source root is testmod1-unresholved-unreleased | |
patching sources | |
installing | |
post-installation fixup | |
[resholve context] : invoking resholve with PWD=/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/5phrq79lmfq8wss9l3jwiy57c954p73y-more-binlore | |
[resholve context] RESHOLVE_INPUTS=/nix/store/i1jf9af43mf4jpnz7angp62bfndm8ksd-jq-1.6-bin/bin:/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin:/nix/store/19zksiynyks5jlpffw5j0z9vg2ambs7b-libressl-3.7.3-bin/bin | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite bin/libressl.sh submodule/helper.sh | |
Overwrote '/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin/libressl.sh' | |
Overwrote '/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/submodule/helper.sh' | |
shrinking RPATHs of ELF executables and libraries in /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased | |
checking for references to /build/ in /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased... | |
patching script interpreter paths in /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin | |
building '/nix/store/s1sf32pbp7fcbdlfa95hnc6ncn5klc25-testmod1-unreleased-binlore.drv'... | |
generating binlore for /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased by running: | |
/nix/store/jmignvx82sz0n6p2dy8i35c7np7kmcq5-yara-4.3.1/bin/yara --scan-list --recursive /nix/store/jf8bpr2dbcprc4mpyplg7hv16lzw327x-execers.yar <(printf '%s\n' /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/lib: could not open file | |
error scanning /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/libexec: could not open file | |
binlore for /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased written to /nix/store/w9pkxyjs8fiar6yd4dsh3xv3wa60rsc0-testmod1-unreleased-binlore | |
building '/nix/store/g91hvxlxvgpv3m1pw28jx6nnrfk271zv-more-binlore.drv'... | |
building '/nix/store/46sj05qslsjbbr16dqp2cwx0c69vi9mk-testmod3-unreleased.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/72dmlld8wz9f8jv2fr90jnblr761vrh1-repo | |
source root is repo/tests/nix/future_perfect_tense | |
patching sources | |
configuring | |
no configure script, doing nothing | |
building | |
no Makefile or custom buildPhase, doing nothing | |
installing | |
[resholve context] : invoking resholve with PWD=/nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/w56sai4l3y4a7mnkhdly62i26bb5pxfq-more-binlore | |
[resholve context] RESHOLVE_FAKE='external:'\''jq'\'';'\''openssl'\''' | |
[resholve context] RESHOLVE_INPUTS=/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin | |
[resholve context] RESHOLVE_INTERPRETER=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
[resholve context] /nix/store/r35n3gcwwhi0myb0qqmwijq8nl07s9gy-resholve-0.9.0/bin/resholve --overwrite bin/conjure.sh | |
Overwrote '/nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased/bin/conjure.sh' | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased | |
checking for references to /build/ in /nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased... | |
patching script interpreter paths in /nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased/bin | |
============================= resholve test suite =================================== | |
1..67 | |
ok 1 verify warnings are thrown for quoted evals in 176ms | |
ok 2 verify --keep '$varname' allows dynamic commands in 182ms | |
ok 3 verify --fix '$varname:cmd' substitutes dynamic commands in 195ms | |
ok 4 can resolve a simple coproc in 170ms | |
ok 5 can't resolve a named braced coproc w/o upstream support :( in 168ms | |
ok 6 can't resolve a named paren coproc w/o upstream support :( in 166ms | |
ok 7 objects to unexempted absolute source paths in 169ms | |
ok 8 allows exempted absolute source paths in 185ms | |
ok 9 allow (but do not parse) --fake 'source:path' in 169ms | |
ok 10 allow (*and* do not parse) --keep 'source:path' + --fake 'source:path' in 320ms | |
ok 11 objects to unexempted tilde executable paths in 167ms | |
ok 12 allows exempted tilde executable paths in 167ms | |
ok 13 allows --fake executable in 167ms | |
ok 14 allows --fake function with colons in 169ms | |
ok 15 resolve abspath with --fix abspath in 169ms | |
ok 16 resolve fails without lore in 188ms | |
ok 17 resolve fails without assay in 167ms | |
ok 18 resolve fails with bad assay in 320ms | |
ok 19 resolve fails with overshooting assay wordnum in 324ms | |
ok 20 resolve fails with assay wordnum 0 in 166ms | |
ok 21 resolve fails with undershooting assay wordnum in 318ms | |
ok 22 resolve succeeds with assay in 170ms | |
ok 23 resolve commands mixed with varlike assignments in 183ms | |
ok 24 verify warnings are thrown for overridden builtins in 171ms | |
ok 25 Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo in 174ms | |
ok 26 don't get confused by input redirections in 170ms | |
ok 27 invoking resholve without --interpreter prints an error in 308ms | |
ok 28 invoking resholve without path/inputs prints an error in 311ms | |
ok 29 invoking resholve with missing interpreter prints an error in 308ms | |
ok 30 invoking resholve with a relative interpreter prints an error in 307ms | |
ok 31 invoking resholve with a non-executable interpreter prints an error in 307ms | |
ok 32 invoking resholve without script's deps prints an error in 317ms | |
ok 33 ensure shebangs are identical in 303ms | |
ok 34 resholve resolves simple external dependency from command-line args in 330ms | |
ok 35 resholve resolves simple external dependency from stdin in 171ms | |
ok 36 path/inputs can be supplied with the inputs alias in 314ms | |
ok 37 only one of path/inputs can be supplied in 308ms | |
ok 38 resholve fails if target script isn't found in 311ms | |
ok 39 resholve fails with duplicate input scripts in 164ms | |
ok 40 resholve fails when scripts have untriaged dynamic elements in 313ms | |
ok 41 resholve fails when 'keep' directives are misformatted in 453ms | |
ok 42 resholve fails when triage directive doesn't specify the right thing in 1059ms | |
ok 43 resholve succeeds when 1x 'keep' directives are correct in 469ms | |
ok 44 resholve succeeds when 2x 'keep' directives are correct in 794ms | |
ok 45 resholve accepts empty directives in 173ms | |
ok 46 don't resolve aliases without '--fix aliases' in 205ms | |
ok 47 inject before and after script in 319ms | |
ok 48 inject before/after in multiple scripts in 176ms | |
ok 49 fail with bad lore argument in 165ms | |
ok 50 accept good lore argument in 162ms | |
ok 51 'which' needs to be in RESHOLVE_PATH in 165ms | |
ok 52 Even in a function, 'which' needs to be in RESHOLVE_PATH in 167ms | |
ok 53 Absolute executable paths need exemptions in 163ms | |
ok 54 Even nested-executable paths need exemptions in 168ms | |
ok 55 Source, among others, needs an exemption for arguments containing variables in 165ms | |
ok 56 Resolves unqualified 'file' to absolute path from RESHOLVE_PATH in 166ms | |
ok 57 Even in a function, resolves unqualified 'file' to absolute path from RESHOLVE_PATH in 167ms | |
ok 58 Only some commands ('source' but NOT 'file', here) are checked for variable arguments. in 165ms | |
ok 59 Add an exemption with --keep <scope>:<name> in 171ms | |
ok 60 Add an exemption with RESHOLVE_ALLOW=source:$PWD in 167ms | |
ok 61 'source' targets also need to be in RESHOLVE_PATH in 164ms | |
ok 62 Resolves unqualified 'source' to absolute path from RESHOLVE_PATH in 193ms | |
ok 63 Has (naive) context-specific resolution rules in 215ms | |
ok 64 Has (rudimentary) support for resolving executable arguments in 248ms | |
ok 65 Can substitute a variable used as a command in 208ms | |
ok 66 modern resholve versions reject v1 files in 168ms | |
ok 67 exercise built-in syntax parsers in 1612ms | |
============================= resholve demo =================================== | |
1..15 | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < which_simple.sh (exit: 3) ] | |
Original: | |
>>> # no inputs provide which | |
>>> which resholve | |
Output: | |
>>> which resholve | |
>>> ^~~~~ | |
>>> [ stdinNone ]:3: Couldn't resolve command 'which' | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 1 'which' needs to be in RESHOLVE_PATH in 170ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < command_in_function.sh (exit: 3) ] | |
Original: | |
>>> source file_simple.sh | |
>>> file() { | |
>>> # no inputs provide which | |
>>> command which "$@" | |
>>> } | |
Output: | |
>>> command which "$@" | |
>>> ^~~~~ | |
>>> [ stdinNone ]:5: Couldn't resolve command 'which' | |
>>> #!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> source /build/repo/tests/file_simple.sh | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 2 Even in a function, 'which' needs to be in RESHOLVE_PATH in 175ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < absolute_path.sh (exit: 5) ] | |
Original: | |
>>> /usr/bin/which resholve | |
Output: | |
>>> /usr/bin/which resholve | |
>>> ^~~~~~~~~~~~~~ | |
>>> [ stdinNone ]:2: Unexpected absolute command path. | |
>>> | |
>>> Next step: keep, fix, or pre-patch/substitute it. | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 3 Absolute executable paths need exemptions in 171ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < absolute_path_nested.sh (exit: 5) ] | |
Original: | |
>>> find . -name resholve -exec /usr/bin/file {} + | |
Output: | |
>>> find . -name resholve -exec /usr/bin/file {} + | |
>>> ^~~~~~~~~~~~~ | |
>>> [ stdinNone ]:2: Unexpected absolute command path. | |
>>> | |
>>> Next step: keep, fix, or pre-patch/substitute it. | |
>>> #!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 4 Even nested-executable paths need exemptions in 174ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < source_var_pwd.sh (exit: 6) ] | |
Original: | |
>>> # fails because $PWD requires a dynamic parse | |
>>> # (I can resolve from a dictionary but haven't | |
>>> # seen a clear reason to do it...) | |
>>> # and isn't exempted with --keep source:PWD | |
>>> source $PWD/file_simple.sh | |
>>> source ${PWD}/file_simple.sh | |
Output: | |
>>> source $PWD/file_simple.sh | |
>>> ^~~~ | |
>>> [ stdinNone ]:6: Can't resolve dynamic argument in 'source' | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 5 Source, among others, needs an exemption for arguments containing variables in 173ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < file_simple.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,3 +1,7 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> # resolves file from inputs | |
>>> -file resholver | |
>>> -"file" resholver | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file resholver | |
>>> +"/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" resholver | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 6 Resolves unqualified 'file' to absolute path from RESHOLVE_PATH in 176ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < file_in_function.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,5 +1,10 @@ | |
>>> -source which_simple.sh | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> +source /build/repo/tests/which_simple.sh | |
>>> which() { | |
>>> # resolves file here too | |
>>> - file "$@" | |
>>> + /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file "$@" | |
>>> } | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +# resholve: keep source:/build/repo/tests/which_simple.sh | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 7 Even in a function, resolves unqualified 'file' to absolute path from RESHOLVE_PATH in 179ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < file_home_source_pwd.sh (exit: 6) ] | |
Original: | |
>>> # $HOME not blocking here; vars currently only checked in: | |
>>> # alias command eval exec source|. sudo env | |
>>> file $HOME/file_simple.sh | |
>>> # PWD needs exemption: --keep source:PWD or RESHOLVE_KEEP='source:PWD' | |
>>> source $PWD/file_simple.sh | |
Output: | |
>>> source $PWD/file_simple.sh | |
>>> ^~~~ | |
>>> [ stdinNone ]:6: Can't resolve dynamic argument in 'source' | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 8 Only some commands ('source' but NOT 'file', here) are checked for variable arguments. in 172ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash --keep 'source:$PWD' < file_home_source_pwd.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,5 +1,10 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> # $HOME not blocking here; vars currently only checked in: | |
>>> # alias command eval exec source|. sudo env | |
>>> -file $HOME/file_simple.sh | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file $HOME/file_simple.sh | |
>>> # PWD needs exemption: --keep source:PWD or RESHOLVE_KEEP='source:PWD' | |
>>> source $PWD/file_simple.sh | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +# resholve: keep source:$PWD | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 9 Add an exemption with --keep <scope>:<name> in 176ms | |
--[ RESHOLVE_KEEP='source:$PWD' resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < file_home_source_pwd.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,5 +1,10 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> # $HOME not blocking here; vars currently only checked in: | |
>>> # alias command eval exec source|. sudo env | |
>>> -file $HOME/file_simple.sh | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file $HOME/file_simple.sh | |
>>> # PWD needs exemption: --keep source:PWD or RESHOLVE_KEEP='source:PWD' | |
>>> source $PWD/file_simple.sh | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +# resholve: keep source:$PWD | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 10 Add an exemption with RESHOLVE_ALLOW=source:$PWD in 179ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < source_missing_target.sh (exit: 4) ] | |
Original: | |
>>> # fails to resolve this (from inputs, or relative to directory) | |
>>> source doesnt_exist.sh | |
Output: | |
>>> source doesnt_exist.sh | |
>>> ^~~~~~~~~~~~~~~ | |
>>> [ stdinNone ]:3: Unable to resolve source target 'doesnt_exist.sh' to a known file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 11 'source' targets also need to be in RESHOLVE_PATH in 173ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < source_present_target.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,3 +1,7 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> # resolves gettext from inputs | |
>>> -source gettext.sh | |
>>> -. gettext.sh | |
>>> +source /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh | |
>>> +. /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep source:/nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 12 Resolves unqualified 'source' to absolute path from RESHOLVE_PATH in 199ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash --fix aliases < alias_riddle.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,16 +1,22 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> # don't try to run me; I'll probably crash or hang or something | |
>>> # I'm just a succinct test for complex resolution logic... | |
>>> alias file="file -n" # the function | |
>>> -alias find="find -H" find2="find -P" # external! | |
>>> +alias find="/nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find -H" find2="/nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find -P" # external! | |
>>> | |
>>> function file(){ | |
>>> file -n # the alias :P | |
>>> } | |
>>> | |
>>> file # I'm the alias | |
>>> \file # the function! | |
>>> -command file # external | |
>>> +command /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file # external | |
>>> | |
>>> find # alias | |
>>> -\find # external | |
>>> -command find # external | |
>>> +\/nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find# external | |
>>> +command /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find # external | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: fix aliases | |
>>> +# resholve: keep /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 13 Has (naive) context-specific resolution rules in 218ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash < nested_execer.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,27 +1,35 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> fargs(){ | |
>>> - echo "nice $(type -ap file) you got there" | |
>>> + echo "nice $(type -ap /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file) you got there" | |
>>> } | |
>>> | |
>>> -echo wert | find $(type -p file) -name file -exec file {} + # resolve 1st/~last | |
>>> +echo wert | /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find $(type -p /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file) -name file -exec /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file {} + # resolve 1st/~last | |
>>> echo wert | fargs file # resolve none | |
>>> -echo wert | exec find file # resolve 2nd | |
>>> -echo wert | xargs file # resolve both | |
>>> +echo wert | exec /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find file # resolve 2nd | |
>>> +echo wert | /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/xargs /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file # resolve both | |
>>> | |
>>> -builtin source gettext.sh # resolve last | |
>>> -builtin command . gettext.sh # resolve last | |
>>> -builtin command -v . gettext.sh # resolve last | |
>>> +builtin source /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh # resolve last | |
>>> +builtin command . /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh # resolve last | |
>>> +builtin command -v . /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh # resolve last | |
>>> | |
>>> echo wert | exec >&2 # resolve none | |
>>> | |
>>> # semi-nonsense, but should resolve bash, gettext, file, bash, file | |
>>> -bash \ | |
>>> - -c "source gettext.sh" \ | |
>>> +/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash \ | |
>>> + -c "source /nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh" \ | |
>>> "bop" \ | |
>>> - -c "command file" \ | |
>>> - -c "bash -c file" | |
>>> + -c "command /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" \ | |
>>> + -c "/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash -c /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" | |
>>> | |
>>> -if type -p find; then | |
>>> - type -p find | |
>>> -elif ! type -p find; then | |
>>> - ! type -p find | |
>>> +if type -p /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find; then | |
>>> + type -p /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find | |
>>> +elif ! type -p /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find; then | |
>>> + ! type -p /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find | |
>>> fi | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: keep /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> +# resholve: keep /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/find | |
>>> +# resholve: keep /nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin/xargs | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +# resholve: keep source:/nix/store/fgr89gfh5if2x12qm0wz2s996jyn5qx9-gettext-0.21/bin/gettext.sh | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 14 Has (rudimentary) support for resolving executable arguments in 261ms | |
--[ resholve --interpreter /nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash --fix '$FILE_CMD:file' < file_var.sh (exit: 0) ] | |
Diff: | |
>>> --- original | |
>>> +++ resolved | |
>>> @@ -1,12 +1,17 @@ | |
>>> +#!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
>>> FILE_CMD="$HOME/.local/bin/file" | |
>>> | |
>>> -$FILE_CMD resholver | |
>>> -"$FILE_CMD" resholver | |
>>> -${FILE_CMD} resholver | |
>>> -"${FILE_CMD}" resholver | |
>>> -${FILE_CMD:-default} resholver | |
>>> -"${FILE_CMD:-default}" resholver | |
>>> -exec $FILE_CMD | |
>>> -exec "$FILE_CMD" | |
>>> -exec $FILE_CMD | exec $FILE_CMD | |
>>> -exec "$FILE_CMD" | exec "$FILE_CMD" | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file resholver | |
>>> +"/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" resholver | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file resholver | |
>>> +"/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" resholver | |
>>> +/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file resholver | |
>>> +"/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" resholver | |
>>> +exec /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +exec "/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" | |
>>> +exec /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | exec /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
>>> +exec "/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" | exec "/nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file" | |
>>> + | |
>>> +### resholve directives (auto-generated) ## format_version: 3 | |
>>> +# resholve: fix $FILE_CMD:file | |
>>> +# resholve: keep /nix/store/yqa6z204wc1qwrac9sjdsnp2cdjay6bg-file-5.44/bin/file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ok 15 Can substitute a variable used as a command in 214ms | |
installing | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/r88gifcr648kqardrh46fcsvb6qi1mqa-resholve-test | |
checking for references to /build/ in /nix/store/r88gifcr648kqardrh46fcsvb6qi1mqa-resholve-test... | |
patching script interpreter paths in /nix/store/r88gifcr648kqardrh46fcsvb6qi1mqa-resholve-test | |
building '/nix/store/7x6rxn4jxamn4g629jdwy1hbcrdhlzaj-resholve-ci.drv'... | |
Hello | |
.: directory | |
============================= resholve Nix demo =============================== | |
much help | |
test_future_perfection | |
nothing up my sleeve | |
+++++ type jq openssl | |
/nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased/bin/conjure.sh: line 7: type: jq: not found | |
/nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased/bin/conjure.sh: line 7: type: openssl: not found | |
+++++ set +x | |
test_openssl | |
+++++ /nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/openssl version | |
OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023) | |
+++++ /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme | |
OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023) | |
+++++ /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme | |
OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023) | |
+++++ set +x | |
test_libressl | |
+++++ /nix/store/i1jf9af43mf4jpnz7angp62bfndm8ksd-jq-1.6-bin/bin/jq -n --arg greeting world '{"hello":$greeting}' | |
{ | |
"hello": "world" | |
} | |
+++++ /nix/store/19zksiynyks5jlpffw5j0z9vg2ambs7b-libressl-3.7.3-bin/bin/openssl version | |
LibreSSL 3.7.3 | |
+++++ set +x | |
Ran 3 tests. | |
OK | |
───────┬──────────────────────────────────────────────────────────────────────── | |
│ File: /nix/store/0q4nxbx1qp922w7d43vixbkishnc28cc-testmod3-unreleased/bin/conjure.sh | |
───────┼──────────────────────────────────────────────────────────────────────── | |
1 │ #!/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
2 │ test_future_perfection() { | |
3 │ echo "nothing up my sleeve" | |
4 │ | |
5 │ { | |
6 │ set -x | |
7 │ type jq openssl | |
8 │ set +x | |
9 │ } | |
10 │ return 0 | |
11 │ } | |
12 │ | |
13 │ test_openssl() { | |
14 │ openssl_sh | |
15 │ } | |
16 │ | |
17 │ test_libressl() { | |
18 │ libressl_sh | |
19 │ } | |
20 │ | |
21 │ source /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin/libressl.sh | |
22 │ | |
23 │ ### resholve directives (auto-generated) ## format_version: 3 | |
24 │ # resholve: fake external:jq | |
25 │ # resholve: fake external:openssl | |
26 │ # resholve: keep source:/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin/libressl.sh | |
27 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────── | |
│ File: /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin/openssl.sh | |
───────┼──────────────────────────────────────────────────────────────────────── | |
1 │ openssl_sh() { | |
2 │ set -x | |
3 │ /nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/openssl version | |
4 │ /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme | |
5 │ /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme | |
6 │ set +x | |
7 │ } | |
8 │ alias blah=/nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/openssl | |
9 │ | |
10 │ source /nix/store/0zzx9skjkkkk37iyz4wlaw3a7zh4nbgy-shunit2-2.1.8/bin/shunit2 | |
11 │ | |
12 │ ### resholve directives (auto-generated) ## format_version: 3 | |
13 │ # resholve: fix aliases | |
14 │ # resholve: keep /nix/store/5x0cf6xglh7h6qszkflll6fspgl39jrb-openssl-3.0.10-bin/bin/openssl | |
15 │ # resholve: keep /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/libexec/invokeme | |
16 │ # resholve: keep source:/nix/store/0zzx9skjkkkk37iyz4wlaw3a7zh4nbgy-shunit2-2.1.8/bin/shunit2 | |
17 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────── | |
│ File: /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/bin/libressl.sh | |
───────┼──────────────────────────────────────────────────────────────────────── | |
1 │ source /nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/submodule/helper.sh | |
2 │ | |
3 │ libressl_sh() { | |
4 │ set -x | |
5 │ /nix/store/i1jf9af43mf4jpnz7angp62bfndm8ksd-jq-1.6-bin/bin/jq -n --arg greeting world '{"hello":$greeting}' | |
6 │ /nix/store/19zksiynyks5jlpffw5j0z9vg2ambs7b-libressl-3.7.3-bin/bin/openssl version | |
7 │ set +x | |
8 │ } | |
9 │ | |
10 │ just_being_helpful | |
11 │ | |
12 │ source /nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin/openssl.sh | |
13 │ | |
14 │ ### resholve directives (auto-generated) ## format_version: 3 | |
15 │ # resholve: keep /nix/store/19zksiynyks5jlpffw5j0z9vg2ambs7b-libressl-3.7.3-bin/bin/openssl | |
16 │ # resholve: keep /nix/store/i1jf9af43mf4jpnz7angp62bfndm8ksd-jq-1.6-bin/bin/jq | |
17 │ # resholve: keep source:/nix/store/ja89na4a8yys67fydxg0kba4vki0m5za-testmod2-unreleased/bin/openssl.sh | |
18 │ # resholve: keep source:/nix/store/lnjqkhzvxjvkfqlbsi7v5i5zcbn3w1is-testmod1-unreleased/submodule/helper.sh | |
19 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
/nix/store/6zbjcrkdnz87ql7ff22nc22d5llsimcn-resholve-ci | |
touch: setting times of 'result-ci': Read-only file system | |
touch: cannot touch 'result-ci/demo.txt': Permission denied | |
touch: cannot touch 'result-ci/nix-demo.txt': Permission denied | |
touch: cannot touch 'result-ci/test.txt': Permission denied |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment