move-language / move

Apache License 2.0
2.25k stars 679 forks source link

[lock] BuildConfig::install_dir configures temporary lock file directory #1006

Closed amnn closed 1 year ago

amnn commented 1 year ago

Previously, temporary lock files were always stored in a sub-directory of the package root because LockFile assumed that the build directory was always there, while the lock file itself could be committed elsewhere.

But the location of /build/ is controlled by BuildConfig::install_dir so we should heed that as well when finding where to store the temporary lock file.

Test Plan

Existing tests:

cargo nextest