mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
platform.HasImmutableFlag says whether the host has a user-immutable flag (true on macOS alone), and the Protector's CanLock field, set from it by New, replaces its OS field: NewMode, NewVM, Set, Check, Unlock and devvm git-protect's running-VM check (vm's settings) read it instead of comparing an OS name with "darwin". Tests set CanLock; TestNewCanLock checks New takes it from platform, and TestRealLocks skips on the same constant. Co-Authored-By: Claude Opus 5.5 <[email protected]>