Files
devvm/internal/gitprotect
w3cjandClaude Opus 5.5 d49163a85c refactor(gitprotect): gate locks on the host's immutable flag, not its OS name
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]>
2026-11-04 11:40:56 -07:00
..