<@U021C96KUGJ> and i were noticing that the git ho...
# development
w
@ancient-vegetable-10556 and i were noticing that the git hooks seemingly invalidate most of `pantsd`’s graph, as well as the process cache. i haven’t looked into it (lots going on!) but i suspect that either the PATH or some other critical env var is changing
if someone has time to compare/contrast the
-ldebug
output of running, say,
check
inside/outside the commit hooks, we can probably improve our hitrate there.
Copy code
--- /Users/stuhood/Desktop/inside.txt	2021-09-25 16:16:33.000000000 -0700
+++ /Users/stuhood/Desktop/outside.txt	2021-09-25 16:16:47.000000000 -0700
@@ -1,7 +1,7 @@
 PANTS_BUILDSENSE_ENABLE=True
 PANTS_REMOTE_CACHE_READ=True
 PANTS_REMOTE_CACHE_WRITE=True
-PATH=/usr/local/Cellar/git/2.26.2/libexec/git-core:/Users/stuhood/.cargo/bin:/Users/stuhood/.pyenv/shims:/Users/stuhood/.pyenv/bin:/Users/stuhood/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
+PATH=/Users/stuhood/.cargo/bin:/Users/stuhood/.pyenv/shims:/Users/stuhood/.pyenv/bin:/Users/stuhood/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
 PWD=/Users/stuhood/src/pants
 PYENV_ROOT=/Users/stuhood/.pyenv
 SHELL=/bin/bash