Skip to content

Instantly share code, notes, and snippets.

@r-rmcgibbo
Created March 16, 2021 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-rmcgibbo/d19728df8572e8c15fd6d7ba28bf2c63 to your computer and use it in GitHub Desktop.
Save r-rmcgibbo/d19728df8572e8c15fd6d7ba28bf2c63 to your computer and use it in GitHub Desktop.
system: x86_64-linux | build_time: 8 seconds | https://github.com/NixOS/nixpkgs/pull/116508
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/5pclw7wx8qwd1cbwc807jrhnsypbqcnx-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/update_generated.sh
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
no Makefile, doing nothing
@nix { "action": "setPhase", "phase": "installPhase" }
installing
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1
gzipping man pages under /nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1/share/man/
strip is /nix/store/cp1sa3xxvl71cypiinw2c62i5s33chlr-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1/bin
patching script interpreter paths in /nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1
/nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1/bin/resholve: interpreter directive changed from "#!/usr/bin/env python2" to "/nix/store/q7wzwbfhy383ir9c4xzvjmbx029zafqn-python-2.7.18/bin/python2"
checking for references to /build/ in /nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1...
Rewriting #!/nix/store/q7wzwbfhy383ir9c4xzvjmbx029zafqn-python-2.7.18/bin/python2 to #!/nix/store/q7wzwbfhy383ir9c4xzvjmbx029zafqn-python-2.7.18
wrapping `/nix/store/0d9bmcb21yb9597rs2xf6f5kqikkhinv-resholve-0.5.1/bin/resholve'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
patching script interpreter paths in .
./test.sh: interpreter directive changed from "#! /usr/bin/env bash" to "/nix/store/f7jzmxq9bpbxsg69cszx56mw14n115n5-bash-4.4-p23/bin/bash"
./resholve: interpreter directive changed from "#!/usr/bin/env python2" to "/nix/store/q7wzwbfhy383ir9c4xzvjmbx029zafqn-python-2.7.18/bin/python2"
./demo: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/f7jzmxq9bpbxsg69cszx56mw14n115n5-bash-4.4-p23/bin/bash"
./update_generated.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/f7jzmxq9bpbxsg69cszx56mw14n115n5-bash-4.4-p23/bin/bash"
1..47
ok 1 verify warnings are thrown for quoted evals
ok 2 verify --keep '' allows dynamic commands
ok 3 Resolve aliases when specified
ok 4 can resolve a simple coproc
ok 5 can't resolve a named coproc w/o upstream support :(
ok 6 objects to unexempted absolute source paths
ok 7 allows exempted absolute source paths
ok 8 allow (but do not parse) --fake 'source:path'
ok 9 allow (*and* do not parse) --keep 'source:path' + --fake 'source:path'
ok 10 objects to unexempted tilde executable paths
ok 11 allows exempted tilde executable paths
ok 12 allows --fake executable
ok 13 allows --fake function with colons
ok 14 resolve abspath with --fix abspath
ok 15 invoking resholve without --interpreter prints an error
ok 16 invoking resholve without path/inputs prints an error
ok 17 invoking resholve with missing interpreter prints an error
ok 18 invoking resholve with a relative interpreter prints an error
ok 19 invoking resholve with a non-executable interpreter prints an error
ok 20 invoking resholve without script's deps prints an error
ok 21 ensure shebangs are identical
ok 22 resholve resolves simple external dependency from command-line args
ok 23 resholve resolves simple external dependency from stdin
ok 24 path/inputs can be supplied with the inputs alias
ok 25 only one of path/inputs can be supplied
ok 26 resholve fails if target script isn't found
ok 27 resholve fails with duplicate input scripts
ok 28 resholve fails when scripts have untriaged dynamic elements
ok 29 resholve fails when 'keep' directives are misformatted
ok 30 resholve fails when triage directive doesn't specify the right thing
ok 31 resholve succeeds when 1x 'keep' directives are correct
ok 32 resholve succeeds when 2x 'keep' directives are correct
ok 33 Don't resolve aliases without '--fix aliases'
ok 34 Inject before and after script
ok 35 'which' needs to be in RESHOLVE_PATH
ok 36 Even in a function, 'which' needs to be in RESHOLVE_PATH
ok 37 Absolute executable paths need exemptions
ok 38 Source, among others, needs an exemption for arguments containing variables
ok 39 Resolves unqualified 'file' to absolute path from RESHOLVE_PATH
ok 40 Even in a function, resolves unqualified 'file' to absolute path from RESHOLVE_PATH
ok 41 Only some commands ('source' but NOT 'file', here) are checked for variable arguments.
ok 42 Add an exemption with --keep <scope>:<name>
ok 43 Add an exemption with RESHOLVE_ALLOW=source:$PWD
ok 44 'source' targets also need to be in RESHOLVE_PATH
ok 45 Resolves unqualified 'source' to absolute path from RESHOLVE_PATH
ok 46 Has (naive) context-specific resolution rules
ok 47 modern resholve versions reject v1 files
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment