Feature request: warn on stale binaries
Robert Collins
robertc at robertcollins.net
Mon Apr 14 02:00:44 BST 2008
On Fri, 2008-04-11 at 14:15 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> It would be nice if Bazaar could detect that it was loading a stale
> binary module. People like me who run Bazaar from the source tree can
> easily wind up with stale binaries, and get poor behavior.
>
> For example: https://bugs.launchpad.net/bugs/215797
>
> I'm not sure how to do this, so I thought I'd just throw it out there.
>
> It seems as though we could bake the bzrlib version into the binary,
> though that would force needless recompiles. We could include a SHA1 of
> the source file, but I'm not sure how we could efficiently detect a
> change at runtime.
>
> I suppose the length of the source file would be a good-enough proxy for
> a checksum, and that would be cheap to check.
What about the same way .pyc staleness is detected? during import look
for the .pyx and if it is newer, raise an ImportError.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080414/66fc7374/attachment.pgp
More information about the bazaar
mailing list