Closed warner closed 7 years ago
Hmm, interesting. It is odd that trying to make a new, specific Version
instance (which is what the Twisted API demands) does anything at all to disc :/
So getVersionString
calls Version.short()
which looks for SCM stuff so it can tack on +rdeadbeef
or similar.
Twisted could fix/change this by calling version.public()
instead of getVersionString
. Arguably, that might make more sense since it's for error-messages and docstrings ...
BTW I originally thought I could work around this by not using the deprecated launch_tor
API, but now I think the problem happens when txtorcon is imported. So switching to the new API won't help. My current workaround is to modify master
(e.g. changing it and then reverting right away), which causes a separate refs/heads/master to be written out, and then refraining from running git-gc.
I think I have a fix for txtorcon until incremental and/or twisted changes...
@warner this is in 0.19.2, just released
My local magic-wormhole tests are currently failing, because magic-wormhole still uses
launch_tor
, and the@deprecated()
decorator aroundlaunch_tor
causes Incremental to look for.git/refs/heads/master
, and that file doesn't exist in my checkout (I did agit gc
, which seems to have compressed everything into.git/packed-refs
).Using a deprecated function from a git-gc'ed source tree is probably rare enough that nobody else has run into this problem so far. I've filed https://github.com/hawkowl/incremental/issues/31 to fix it upstream, and for now I'm going to prioritize moving from
launch_tor
to the modernlaunch
, but I'll file this just in case someone else sees this exception and is wondering why.The full message (using Twisted-17.1.0, Incremental-16.10.1, and txtorcon-0.19.1) is: