Skip to content

fix: reject unsupported lockfile versions - #500

Merged
zeroshade merged 1 commit into
columnar-tech:mainfrom
eitsupi:fix/reject-unsupported-lockfile-version
Sep 26, 2026
Merged

zeroshade merged 1 commit into
columnar-tech:mainfrom
eitsupi:fix/reject-unsupported-lockfile-version

Conversation

@eitsupi

@eitsupi eitsupi commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Related to #497

Summary

dbc 0.3.0 silently accepts lockfiles with unsupported versions, including v2 files with source and artifact metadata.
During dbc sync, it can treat such entries as v1 registry locks and overwrite the file as v1.

Validate the top-level version immediately after TOML decoding. Version 1 still loads; versions 2 and later, as well as a missing version, now fail before lock entries are used.
A failed sync leaves the lockfile unchanged.

@eitsupi eitsupi changed the title fix(lockfile): reject unsupported versions before sync fix: reject unsupported versions before sync Sep 26, 2026
@eitsupi eitsupi changed the title fix: reject unsupported versions before sync fix: reject unsupported versions Sep 26, 2026
@eitsupi eitsupi changed the title fix: reject unsupported versions fix: reject unsupported lockfile versions Sep 26, 2026
@zeroshade
zeroshade merged commit ffc6e2e into columnar-tech:main Sep 26, 2026
20 checks passed
@eitsupi
eitsupi deleted the fix/reject-unsupported-lockfile-version branch September 26, 2026 17:04
@amoeba amoeba mentioned this pull request Sep 29, 2026
amoeba pushed a commit that referenced this pull request Sep 30, 2026
Related to #497

## Summary

dbc 0.3.0 silently accepts lockfiles with unsupported versions,
including v2 files with source and artifact metadata.
During `dbc sync`, it can treat such entries as v1 registry locks and
overwrite the file as v1.

Validate the top-level version immediately after TOML decoding. Version
1 still loads; versions 2 and later, as well as a missing version, now
fail before lock entries are used.
A failed sync leaves the lockfile unchanged.
amoeba pushed a commit that referenced this pull request Sep 30, 2026
Related to #497

## Summary

dbc 0.3.0 silently accepts lockfiles with unsupported versions,
including v2 files with source and artifact metadata.
During `dbc sync`, it can treat such entries as v1 registry locks and
overwrite the file as v1.

Validate the top-level version immediately after TOML decoding. Version
1 still loads; versions 2 and later, as well as a missing version, now
fail before lock entries are used.
A failed sync leaves the lockfile unchanged.
amoeba pushed a commit that referenced this pull request Sep 30, 2026
Related to #497

## Summary

dbc 0.3.0 silently accepts lockfiles with unsupported versions,
including v2 files with source and artifact metadata.
During `dbc sync`, it can treat such entries as v1 registry locks and
overwrite the file as v1.

Validate the top-level version immediately after TOML decoding. Version
1 still loads; versions 2 and later, as well as a missing version, now
fail before lock entries are used.
A failed sync leaves the lockfile unchanged.
amoeba pushed a commit that referenced this pull request Sep 30, 2026
Related to #497

## Summary

dbc 0.3.0 silently accepts lockfiles with unsupported versions,
including v2 files with source and artifact metadata.
During `dbc sync`, it can treat such entries as v1 registry locks and
overwrite the file as v1.

Validate the top-level version immediately after TOML decoding. Version
1 still loads; versions 2 and later, as well as a missing version, now
fail before lock entries are used.
A failed sync leaves the lockfile unchanged.
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