Open BetsyMcPhail opened 3 years ago
PR includes other changes to workaround Linux-only libraries.
Currently, the locking tests are not passing on Windows. To run the lock tests:
spack unit-test lib/spack/spack/test/llnl/util/lock.py
More lock tests are passing now.
None of the range-locking tests work. In theory, it seems like this should be possible on Windows (e.g. https://docs.microsoft.com/en-us/windows/win32/fileio/locking-and-unlocking-byte-ranges-in-files) but in practice I haven't found a successful implementation.
Note also that disabling locks does not completely bypass the locks class. Specifically, installer.py
uses llnl.util.lock.py
directly instead of the lock.py
wrapper class.
https://github.com/spack/spack/pull/20412