happy-kitchen-89482
02/11/2021, 7:16 PMwitty-crayon-22786
02/11/2021, 7:20 PMsrc/rust/engine/target
and ~/.cache/pants/bin/native-engine
happy-kitchen-89482
02/11/2021, 7:30 PMhappy-kitchen-89482
02/11/2021, 7:30 PMstable
one?witty-crayon-22786
02/11/2021, 7:31 PMwitty-crayon-22786
02/11/2021, 7:31 PMhappy-kitchen-89482
02/11/2021, 7:31 PMnative_engine.so
gets stored in ~/.cache/pants/bin
and our ./pants
script picks that up from there?witty-crayon-22786
02/11/2021, 7:32 PMnative_engine.so
that matters is at src/python/pants/engine/internals/native_engine.so
happy-kitchen-89482
02/11/2021, 7:33 PMhappy-kitchen-89482
02/11/2021, 7:34 PMsrc/python/pants/engine/internals/native_engine.so
was recreated in no timehappy-kitchen-89482
02/11/2021, 7:34 PMwitty-crayon-22786
02/11/2021, 7:34 PMwitty-crayon-22786
02/11/2021, 7:35 PMsrc/rust/engine/target
contains enough for cargo to recreate it easily without the cache, even during branch switcheshundreds-breakfast-49010
02/11/2021, 7:57 PMhundreds-breakfast-49010
02/11/2021, 7:57 PMhappy-kitchen-89482
02/12/2021, 12:55 AMsrc/python/pants/engine/internals/native_engine.so
and src/python/pants/engine/internals/native_engine.so.metadata
is not enough to prevent a rebuildwitty-crayon-22786
02/12/2021, 12:56 AMhappy-kitchen-89482
02/12/2021, 12:57 AMhappy-kitchen-89482
02/12/2021, 12:58 AMhappy-kitchen-89482
02/12/2021, 12:58 AMwitty-crayon-22786
02/12/2021, 12:58 AMhappy-kitchen-89482
02/12/2021, 12:58 AMhappy-kitchen-89482
02/12/2021, 12:58 AMhappy-kitchen-89482
02/12/2021, 1:00 AMengine_version
field?happy-kitchen-89482
02/12/2021, 1:45 AMhappy-kitchen-89482
02/12/2021, 1:45 AMhappy-kitchen-89482
02/12/2021, 1:46 AMnative_engine.so
and native_engine.so.metadata
and restoring them correctly, and the fingerprint being identical, we still rebuildhappy-kitchen-89482
02/12/2021, 1:46 AMhappy-kitchen-89482
02/12/2021, 2:43 AMhappy-kitchen-89482
02/12/2021, 2:44 AM~/.cache/
and rebuilds if it doesn't find the native engine therehappy-kitchen-89482
02/12/2021, 3:03 AM