volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
10.41k stars 223 forks source link

debugging: add a bunch of tracing around `archive` #1784

Open chriskrycho opened 1 week ago

chriskrycho commented 1 week ago

Background/Notes

This is not really intended to be merged as is, but it should allow folks to do some testing and see if we can get more info for #1744.

In the interest of possibly being able to build on this for merging it if we find that useful in the future, I used trace! rather than debug! for this extreme level of output, and added a --very-verbose flag for this mode.

Note: This is based on v1.1.1, not on the latest main, and I have intentionally marked it as a draft until we get more info from #1744.

To Test

git clone https://github.com/volta-cli/volta.git
cd volta
git switch chriskrycho/debug-1744
cargo build --release
mv $HOME/.volta/bin/volta $HOME/.volta/bin/volta-backup
cp ./target/release/volta $HOME/.volta/bin/volta
volta --verbose --very-verbose

That final line should print the normal help output preceded by this line:

[very verbose] log level: VeryVerbose

(If you have a non-standard installation location, you will want to figure out where it is with which volta and do the same basic thing for the final two steps, but with the appropriate directory changes.)

Once you have that set up, you should be able to get much more info about where in the archive/unpacking process things are going wrong.