Skip to content

Revert "Set pinned as default lock mode (#13245)" - #13258

Merged
sipsma merged 1 commit into
dagger:mainfrom
sipsma:revert-lockfile
May 28, 2026
Merged

sipsma merged 1 commit into
dagger:mainfrom
sipsma:revert-lockfile

Conversation

@sipsma

@sipsma sipsma commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Reverts da5a7161c5 so the default lock lookup mode returns to disabled for now.

After the default changed to pinned, some tests started consistently failing. One concrete reproducer is TestContainer/TestWithMountedDirectoryCaching: the first session writes .dagger/lock into the test workdir, so the second Host().Directory(".") snapshot sees changed content and the cached exec is invalidated.

This backs the change out while we reassess the lockfile behavior and its interaction with host directory snapshots.

Validation

  • go test ./core/workspace ./core/schema -run 'Test(ParseLockMode|ResolveLockMode|CurrentLookupLockMode|ResolveLookupFromLock)' -count=1\n- dagger --progress=plain call engine-dev test --pkg ./core/integration --run='TestContainer/TestWithMountedDirectoryCaching'

@sipsma
sipsma requested a review from a team as a code owner May 28, 2026 23:24
@sipsma sipsma added this to the v0.21.1 milestone May 28, 2026
@sipsma
sipsma merged commit be827f9 into dagger:main May 28, 2026
77 of 78 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.

2 participants