You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native builds now exclude machine-local .hack/ state, including generated Compose env overrides, and the checkout's .hack.secret.key. The native runtime prunes these paths before hashing or snapshotting, independent of Docker ignore rules. An explicit local COPY of an excluded path fails before the builder runs.
This moves HACK-2575 out of #1129 so it can land without #1112. The shared policy stays in src/ for CLI source copies and is embedded in the native runtime. Native excludes .hack/.env even without a state marker because Hack can write generated output before the marker.
Compose still relies on the effective Docker ignore file. Where that file leaves them exposed, a context containing .hack/ can send lifecycle logs, generated overrides and local env files to Docker. A checkout-root context can also send .hack.secret.key. A follow-up warning before affected Compose builds is tracked separately.
The lead's VM measured three of three builds reused across both retained starts, zero registry requests, and the same context digest across all three starts on a tree with this change. The clean merge with #1106 is being tested separately. #1112 will need conflict resolution in the native build scanner call and release notes.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Ready for lead: 12600a99626d1d5cf721ebdc111608e9604760ff (verified with git ls-remote).
This is the standalone HACK-2575 change from #1129. On this head, root typecheck, 247 Bun tests, 230 Rust build/scanner/project tests (2 ignored), privacy, and gitleaks passed. The Bun files were native-project-builds, native-project-start, agent-plugin-generation, and hack-gitignore. A local merge with #1106 head 15b888d1f7 was clean. On that combined ref, root typecheck, 254 tests in the same Bun files, and the same 230 Rust tests passed. Hosted gates are pending.
A later merge with #1112 conflicts in packages/runtime-core/src/provider/image_build.rs and docs/versions/v5/release-notes.md. Keep #1112's scan_request split and call the privacy-aware scanner in it. Keep both release-note sections.
Lead check of 12600a9: the change is line for line the one accepted on #1129 (7daccc5), on next. It chains cleanly on the tested set. The VM measurement of that change (three of three builds reused, zero registry requests, one context digest over three starts) is on the issue. Accepted for the next batch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native builds now exclude machine-local
.hack/state, including generated Compose env overrides, and the checkout's.hack.secret.key. The native runtime prunes these paths before hashing or snapshotting, independent of Docker ignore rules. An explicit local COPY of an excluded path fails before the builder runs.This moves HACK-2575 out of #1129 so it can land without #1112. The shared policy stays in
src/for CLI source copies and is embedded in the native runtime. Native excludes.hack/.enveven without a state marker because Hack can write generated output before the marker.Compose still relies on the effective Docker ignore file. Where that file leaves them exposed, a context containing
.hack/can send lifecycle logs, generated overrides and local env files to Docker. A checkout-root context can also send.hack.secret.key. A follow-up warning before affected Compose builds is tracked separately.The lead's VM measured three of three builds reused across both retained starts, zero registry requests, and the same context digest across all three starts on a tree with this change. The clean merge with #1106 is being tested separately. #1112 will need conflict resolution in the native build scanner call and release notes.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.