Created
September 5, 2023 12:07
-
-
Save Jayman2000/099702f2b2baf24874f34423c6b684c6 to your computer and use it in GitHub Desktop.
A log used to follow up on 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
$ make ci | |
Building ci.nix | |
these 19 derivations will be built: | |
/nix/store/q9dsxcrnaqsqfcikngyqqmymw6lwfwqd-testmod2-unresholved-unreleased.drv | |
/nix/store/35rwsqax386p5pn7v95phijhn82svpa9-testmod2-unresholved-unreleased-binlore.drv | |
/nix/store/7ijag87h8igx0ngfb3qdy6xxy3q8szbh-resholve-0.9.0.drv | |
/nix/store/v94i1h571y5g6jnmk0s3kcag9svhnzsp-more-binlore.drv | |
/nix/store/x76h59ab4bc4v135a8wnjgq7lswparxm-more-binlore.drv | |
/nix/store/44p62q6kwnyi1rqwihqwx5j7xzl4nsm6-testmod2-unreleased.drv | |
/nix/store/5cyskxlnbk1kzzy2lca4vfq2bi56pv1h-testmod1-unresholved-unreleased.drv | |
/nix/store/6q95v99aqba53chy1g5zngsgsb3yzw02-resholved-script-bin.drv | |
/nix/store/c2hdywnn5q2s067xks3cw44yk0z1syyj-testmod2-unreleased-binlore.drv | |
/nix/store/vpylhmw4m113ncndys8d54c58gp32mgj-testmod1-unresholved-unreleased-binlore.drv | |
/nix/store/y6fri6nz4inyih3s9zlf1ms5ysy6fb2k-more-binlore.drv | |
/nix/store/ncbp5mnnapkjzssvzl2fwvm6mj95xwsf-testmod1-unreleased.drv | |
/nix/store/70gzbs30iwry9y5x5zd5v0zlnv6jlq72-testmod1-unreleased-binlore.drv | |
/nix/store/fh40z6m6yp3lnxqfnp9ywz3gndh5vnpn-resholved-script.drv | |
/nix/store/fhfqzqsg9l1x08zvvv621whakzbwv2lp-resholved-script-bin.drv | |
/nix/store/cjdxyqr6xqilg2cpwvhg3ahvakd0hqp1-more-binlore.drv | |
/nix/store/gcia27j1ivk8psf2cgd93r5sv8hfdn47-testmod3-unreleased.drv | |
/nix/store/sg7ffvz5bv70631disr78p2ixml24x7q-resholve-test.drv | |
/nix/store/7vw956czzgql53i2sw3lwma4g2py2irl-resholve-ci.drv | |
building '/nix/store/7ijag87h8igx0ngfb3qdy6xxy3q8szbh-resholve-0.9.0.drv'... | |
building '/nix/store/5cyskxlnbk1kzzy2lca4vfq2bi56pv1h-testmod1-unresholved-unreleased.drv'... | |
building '/nix/store/q9dsxcrnaqsqfcikngyqqmymw6lwfwqd-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/5prdfhxkn0fy2hnphjaq1wngnawvqsv1-repo | |
unpacking sources | |
unpacking source archive /nix/store/5prdfhxkn0fy2hnphjaq1wngnawvqsv1-repo | |
unpacking sources | |
unpacking source archive /nix/store/5prdfhxkn0fy2hnphjaq1wngnawvqsv1-repo | |
source root is repo | |
source root is repo/tests/nix/libressl | |
patching sources | |
source root is repo/tests/nix/openssl | |
configuring | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file repo/wordswurst.nix | |
patching sources | |
patching sources | |
configuring | |
no configure script, doing nothing | |
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/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased | |
checking for references to /build/ in /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased... | |
post-installation fixup | |
patching script interpreter paths in /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased | |
no configure script, doing nothing | |
stripping (with command strip and flags -S -p) in /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/bin | |
building | |
Executing setuptoolsBuildPhase | |
shrinking RPATHs of ELF executables and libraries in /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased | |
checking for references to /build/ in /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased... | |
building '/nix/store/vpylhmw4m113ncndys8d54c58gp32mgj-testmod1-unresholved-unreleased-binlore.drv'... | |
patching script interpreter paths in /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased | |
/nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-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/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/libexec /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/bin | |
building '/nix/store/35rwsqax386p5pn7v95phijhn82svpa9-testmod2-unresholved-unreleased-binlore.drv'... | |
generating binlore for /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-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/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/lib: could not open file | |
error scanning /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/libexec: could not open file | |
binlore for /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased written to /nix/store/ir0f8imq5z0dikdp52nr3hp7fqbpnc1g-testmod1-unresholved-unreleased-binlore | |
generating binlore for /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-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/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/lib: could not open file | |
binlore for /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased written to /nix/store/vykw1xdqp2l8q6fximbm4rqkizkgym0g-testmod2-unresholved-unreleased-binlore | |
building '/nix/store/v94i1h571y5g6jnmk0s3kcag9svhnzsp-more-binlore.drv'... | |
building '/nix/store/x76h59ab4bc4v135a8wnjgq7lswparxm-more-binlore.drv'... | |
substituteStream(): WARNING: pattern '/nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/' doesn't match anything in file '/nix/store/lqad9hi63gac8wcchysvlkkxvlgs1bja-more-binlore/wrappers' | |
substituteStream(): WARNING: pattern '/nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased/' doesn't match anything in file '/nix/store/yj36ylcxmbsax3cy1wxmmn51n2wsallg-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/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0 | |
checking for references to /build/ in /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0... | |
gzipping man pages under /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/share/man/ | |
patching script interpreter paths in /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0 | |
stripping (with command strip and flags -S -p) in /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/lib /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin | |
shrinking RPATHs of ELF executables and libraries in /nix/store/sypgcfsvzf0kf92q628nhgk6a5y8j6l2-resholve-0.9.0-dist | |
checking for references to /build/ in /nix/store/sypgcfsvzf0kf92q628nhgk6a5y8j6l2-resholve-0.9.0-dist... | |
patching script interpreter paths in /nix/store/sypgcfsvzf0kf92q628nhgk6a5y8j6l2-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/ccrr505r2kma23jha9ic8lkxxribip7j-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/sg7ffvz5bv70631disr78p2ixml24x7q-resholve-test.drv'... | |
building '/nix/store/6q95v99aqba53chy1g5zngsgsb3yzw02-resholved-script-bin.drv'... | |
building '/nix/store/fhfqzqsg9l1x08zvvv621whakzbwv2lp-resholved-script-bin.drv'... | |
building '/nix/store/fh40z6m6yp3lnxqfnp9ywz3gndh5vnpn-resholved-script.drv'... | |
building '/nix/store/44p62q6kwnyi1rqwihqwx5j7xzl4nsm6-testmod2-unreleased.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/5prdfhxkn0fy2hnphjaq1wngnawvqsv1-repo | |
[resholve context] : invoking resholve with PWD=/nix/store/31xp8cifq02s3plcka9i4d71dr31k7w6-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/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite bin/resholved-script-bin | |
[resholve context] : invoking resholve with PWD=/nix/store/1y9dmgk9rwwmg1x0phar5dy7mw5vdy5j-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/ccrr505r2kma23jha9ic8lkxxribip7j-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/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite /nix/store/fxyyjbg6w6lzgark1dc2zr8xb79d3rds-resholved-script | |
source root is repo | |
patching sources | |
unpacking sources | |
unpacking source archive /nix/store/19jl99mkaldlyj41k9q6kfivjx9yrlzr-testmod2-unresholved-unreleased | |
configuring | |
source root is testmod2-unresholved-unreleased | |
patching sources | |
no configure script, doing nothing | |
installing | |
building | |
build flags: SHELL=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
post-installation fixup | |
/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash: line 1: nix-shell: command not found | |
Sorry--the Makefile is a lie. I just use this for dev tasks atm. | |
See README.md / https://github.com/abathur/resholve | |
[resholve context] : invoking resholve with PWD=/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/yj36ylcxmbsax3cy1wxmmn51n2wsallg-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/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite bin/openssl.sh libexec/invokeme | |
running tests | |
patching script interpreter paths in . | |
./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/31xp8cifq02s3plcka9i4d71dr31k7w6-resholved-script-bin/bin/resholved-script-bin' | |
Overwrote '/nix/store/1y9dmgk9rwwmg1x0phar5dy7mw5vdy5j-resholved-script-bin/bin/resholved-script-bin' | |
Overwrote '/nix/store/fxyyjbg6w6lzgark1dc2zr8xb79d3rds-resholved-script' | |
Overwrote '/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/bin/openssl.sh' | |
Overwrote '/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/libexec/invokeme' | |
[resholve context] RESHOLVE_LORE=/nix/store/lqad9hi63gac8wcchysvlkkxvlgs1bja-more-binlore | |
[resholve context] RESHOLVE_INPUTS= | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite profile | |
Overwrote '/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/profile' | |
shrinking RPATHs of ELF executables and libraries in /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased | |
checking for references to /build/ in /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased... | |
patching script interpreter paths in /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/libexec /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/bin | |
building '/nix/store/c2hdywnn5q2s067xks3cw44yk0z1syyj-testmod2-unreleased-binlore.drv'... | |
generating binlore for /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-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/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/lib: could not open file | |
binlore for /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased written to /nix/store/c3i1ajfdc2wpkfwpbq9mnh7dv0f4lfdg-testmod2-unreleased-binlore | |
building '/nix/store/y6fri6nz4inyih3s9zlf1ms5ysy6fb2k-more-binlore.drv'... | |
substituteStream(): WARNING: pattern '/nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/' doesn't match anything in file '/nix/store/a90qlmqc1ppigjxn88jy2laqpxhwyi7k-more-binlore/execers' | |
substituteStream(): WARNING: pattern '/nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased/' doesn't match anything in file '/nix/store/a90qlmqc1ppigjxn88jy2laqpxhwyi7k-more-binlore/wrappers' | |
building '/nix/store/ncbp5mnnapkjzssvzl2fwvm6mj95xwsf-testmod1-unreleased.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/ad5zm8xv3m0njmhpg279agi53b7qfr88-testmod1-unresholved-unreleased | |
source root is testmod1-unresholved-unreleased | |
patching sources | |
installing | |
post-installation fixup | |
[resholve context] : invoking resholve with PWD=/nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/a90qlmqc1ppigjxn88jy2laqpxhwyi7k-more-binlore | |
[resholve context] RESHOLVE_INPUTS=/nix/store/i1jf9af43mf4jpnz7angp62bfndm8ksd-jq-1.6-bin/bin:/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/bin:/nix/store/19zksiynyks5jlpffw5j0z9vg2ambs7b-libressl-3.7.3-bin/bin | |
[resholve context] RESHOLVE_INTERPRETER=none | |
[resholve context] /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite bin/libressl.sh submodule/helper.sh | |
Overwrote '/nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/bin/libressl.sh' | |
Overwrote '/nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/submodule/helper.sh' | |
shrinking RPATHs of ELF executables and libraries in /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased | |
checking for references to /build/ in /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased... | |
patching script interpreter paths in /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/bin | |
building '/nix/store/70gzbs30iwry9y5x5zd5v0zlnv6jlq72-testmod1-unreleased-binlore.drv'... | |
generating binlore for /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-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/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/{bin,lib,libexec}) | /nix/store/9dx4bmdqbmazrdzdj08gh1kjjlkmvc2w-yallback-0.1.0/bin/yallback /nix/store/kmdywkvhcwdifd77jlc3pag7bxnfkzn9-execers.yall | |
error scanning /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/lib: could not open file | |
error scanning /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/libexec: could not open file | |
binlore for /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased written to /nix/store/sy60vcclq0da6kvhpcvd0w7fc1q26l8g-testmod1-unreleased-binlore | |
building '/nix/store/cjdxyqr6xqilg2cpwvhg3ahvakd0hqp1-more-binlore.drv'... | |
building '/nix/store/gcia27j1ivk8psf2cgd93r5sv8hfdn47-testmod3-unreleased.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/5prdfhxkn0fy2hnphjaq1wngnawvqsv1-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/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased | |
[resholve context] RESHOLVE_LORE=/nix/store/hqj31bf7cwvx2f3chihd1m55vgbgyrq9-more-binlore | |
[resholve context] RESHOLVE_FAKE='external:'\''jq'\'';'\''openssl'\''' | |
[resholve context] RESHOLVE_INPUTS=/nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/bin | |
[resholve context] RESHOLVE_INTERPRETER=/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash | |
[resholve context] /nix/store/ccrr505r2kma23jha9ic8lkxxribip7j-resholve-0.9.0/bin/resholve --overwrite bin/conjure.sh | |
Overwrote '/nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased/bin/conjure.sh' | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased | |
checking for references to /build/ in /nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased... | |
patching script interpreter paths in /nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased | |
stripping (with command strip and flags -S -p) in /nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased/bin | |
============================= resholve test suite =================================== | |
1..67 | |
ok 1 verify warnings are thrown for quoted evals in 177ms | |
ok 2 verify --keep '$varname' allows dynamic commands in 186ms | |
ok 3 verify --fix '$varname:cmd' substitutes dynamic commands in 196ms | |
ok 4 can resolve a simple coproc in 175ms | |
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 167ms | |
ok 7 objects to unexempted absolute source paths in 167ms | |
ok 8 allows exempted absolute source paths in 185ms | |
ok 9 allow (but do not parse) --fake 'source:path' in 167ms | |
ok 10 allow (*and* do not parse) --keep 'source:path' + --fake 'source:path' in 317ms | |
ok 11 objects to unexempted tilde executable paths in 166ms | |
ok 12 allows exempted tilde executable paths in 165ms | |
ok 13 allows --fake executable in 165ms | |
ok 14 allows --fake function with colons in 170ms | |
ok 15 resolve abspath with --fix abspath in 169ms | |
ok 16 resolve fails without lore in 187ms | |
ok 17 resolve fails without assay in 169ms | |
ok 18 resolve fails with bad assay in 316ms | |
ok 19 resolve fails with overshooting assay wordnum in 324ms | |
ok 20 resolve fails with assay wordnum 0 in 167ms | |
ok 21 resolve fails with undershooting assay wordnum in 321ms | |
ok 22 resolve succeeds with assay in 168ms | |
ok 23 resolve commands mixed with varlike assignments in 183ms | |
ok 24 verify warnings are thrown for overridden builtins in 170ms | |
ok 25 Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo in 171ms | |
ok 26 don't get confused by input redirections in 168ms | |
ok 27 invoking resholve without --interpreter prints an error in 308ms | |
ok 28 invoking resholve without path/inputs prints an error in 310ms | |
ok 29 invoking resholve with missing interpreter prints an error in 309ms | |
ok 30 invoking resholve with a relative interpreter prints an error in 309ms | |
ok 31 invoking resholve with a non-executable interpreter prints an error in 309ms | |
ok 32 invoking resholve without script's deps prints an error in 315ms | |
ok 33 ensure shebangs are identical in 305ms | |
ok 34 resholve resolves simple external dependency from command-line args in 331ms | |
ok 35 resholve resolves simple external dependency from stdin in 171ms | |
ok 36 path/inputs can be supplied with the inputs alias in 319ms | |
ok 37 only one of path/inputs can be supplied in 309ms | |
ok 38 resholve fails if target script isn't found in 311ms | |
ok 39 resholve fails with duplicate input scripts in 165ms | |
ok 40 resholve fails when scripts have untriaged dynamic elements in 319ms | |
ok 41 resholve fails when 'keep' directives are misformatted in 456ms | |
ok 42 resholve fails when triage directive doesn't specify the right thing in 1051ms | |
ok 43 resholve succeeds when 1x 'keep' directives are correct in 469ms | |
ok 44 resholve succeeds when 2x 'keep' directives are correct in 782ms | |
ok 45 resholve accepts empty directives in 172ms | |
ok 46 don't resolve aliases without '--fix aliases' in 205ms | |
ok 47 inject before and after script in 321ms | |
ok 48 inject before/after in multiple scripts in 177ms | |
ok 49 fail with bad lore argument in 166ms | |
ok 50 accept good lore argument in 164ms | |
ok 51 'which' needs to be in RESHOLVE_PATH in 166ms | |
ok 52 Even in a function, 'which' needs to be in RESHOLVE_PATH in 167ms | |
ok 53 Absolute executable paths need exemptions in 165ms | |
ok 54 Even nested-executable paths need exemptions in 165ms | |
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 166ms | |
ok 58 Only some commands ('source' but NOT 'file', here) are checked for variable arguments. in 166ms | |
ok 59 Add an exemption with --keep <scope>:<name> in 165ms | |
ok 60 Add an exemption with RESHOLVE_ALLOW=source:$PWD in 167ms | |
ok 61 'source' targets also need to be in RESHOLVE_PATH in 166ms | |
ok 62 Resolves unqualified 'source' to absolute path from RESHOLVE_PATH in 191ms | |
ok 63 Has (naive) context-specific resolution rules in 213ms | |
ok 64 Has (rudimentary) support for resolving executable arguments in 247ms | |
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 1586ms | |
============================= 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 171ms | |
--[ 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 172ms | |
--[ 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 175ms | |
--[ 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 178ms | |
--[ 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 173ms | |
--[ 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 178ms | |
--[ 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 176ms | |
--[ 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 171ms | |
--[ 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 197ms | |
--[ 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 217ms | |
--[ 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 259ms | |
--[ 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 215ms | |
installing | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/brlk8v1qvc4zm0yr71j65jbn8mqr6a1q-resholve-test | |
checking for references to /build/ in /nix/store/brlk8v1qvc4zm0yr71j65jbn8mqr6a1q-resholve-test... | |
patching script interpreter paths in /nix/store/brlk8v1qvc4zm0yr71j65jbn8mqr6a1q-resholve-test | |
building '/nix/store/7vw956czzgql53i2sw3lwma4g2py2irl-resholve-ci.drv'... | |
Hello | |
.: directory | |
============================= resholve Nix demo =============================== | |
much help | |
test_future_perfection | |
nothing up my sleeve | |
+++++ type jq openssl | |
/nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-testmod3-unreleased/bin/conjure.sh: line 7: type: jq: not found | |
/nix/store/ynn1cbdxlzknk7k2qk21rc296v0z69kr-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/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/libexec/invokeme | |
OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0.10 1 Aug 2023) | |
+++++ /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-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/ynn1cbdxlzknk7k2qk21rc296v0z69kr-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/30mn38zz3diwxrf7i5i4bdky02p0hdlb-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/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/bin/libressl.sh | |
27 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────── | |
│ File: /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-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/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/libexec/invokeme | |
5 │ /nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-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/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/libexec/invokeme | |
16 │ # resholve: keep source:/nix/store/0zzx9skjkkkk37iyz4wlaw3a7zh4nbgy-shunit2-2.1.8/bin/shunit2 | |
17 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────── | |
│ File: /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/bin/libressl.sh | |
───────┼──────────────────────────────────────────────────────────────────────── | |
1 │ source /nix/store/30mn38zz3diwxrf7i5i4bdky02p0hdlb-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/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-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/30mn38zz3diwxrf7i5i4bdky02p0hdlb-testmod1-unreleased/submodule/helper.sh | |
18 │ # resholve: keep source:/nix/store/lfsxdys3m0qyw2w071k1mg0aqd97vj3x-testmod2-unreleased/bin/openssl.sh | |
19 │ | |
───────┴──────────────────────────────────────────────────────────────────────── | |
/nix/store/fimpys4pjvcah8zfc35aqhpika5d1717-resholve-ci | |
cp: cannot create directory 'result-ci/nix-result-ci': Read-only file system | |
make: *** [Makefile:22: result-ci] Error 1 | |
$ echo "$?" | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment