Skip to content

fix(modules): harden replacement lock reuse validation and TOCTOU capture - #272

Merged
ZergsLaw merged 1 commit into
mainfrom
fix/pr-270-replacement-lock-reuse
Dec 4, 2026
Merged

ZergsLaw merged 1 commit into
mainfrom
fix/pr-270-replacement-lock-reuse

Conversation

@ZergsLaw

@ZergsLaw ZergsLaw commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #270 that hardens local replacement lock reuse across manifest detection, Tidy TOCTOU capture, MVS constraint soundness, and cache installation. Restricts lock reuse strictly to native v1 protobuf.mod replacements while reading protobuf.lock through sourceview and tidySourceView so legacy easyp.yaml/easyp.lock modules never fail with v1.ErrLegacyConfiguration and concurrent edits or symlink swaps to <fork>/protobuf.lock during easyp mod tidy trigger sourceview.ErrChanged. Replaces the single boolean exact-match check in overlay_pins.go with tracked semver minimum and commit requirements validated via ValidateModuleVersion, evaluates non-replaced root requirements and versionless commit pins, expands only MVS-justified revisions in batched Cache.Install waves, and updates .spec/config/dependency.md. Verified with go test -race -count=1 ./internal/modules/... ./internal/generation/... ./internal/api/..., GOOS=windows GOARCH=amd64 go vet ./..., go run ./cmd/easyp schema-gen, and golangci-lint run ./....

@ZergsLaw
ZergsLaw merged commit 1fc28b0 into main Dec 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant