Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unknown keys when parsing csig files and update JSON files #96

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

chenxiaolong
Copy link
Owner

The versioning of the two file formats unfortunately didn't work out as well as I hoped. To support older versions of Custota, the server would need to keep serving the old file formats without any good upgrade path besides doing a hard cutover at some point.

Instead, let's try taking a page from the protobuf book and just make version 2 extensible by adding new fields. Custota from now on will just ignore fields it does not understand. I'll plan on having custota-tool output all fields forever for future backwards compatibility.

Issue: #94

@chenxiaolong chenxiaolong self-assigned this Oct 18, 2024
The versioning of the two file formats unfortunately didn't work out as
well as I hoped. To support older versions of Custota, the server would
need to keep serving the old file formats without any good upgrade path
besides doing a hard cutover at some point.

Instead, let's try taking a page from the protobuf book and just make
version 2 extensible by adding new fields. Custota from now on will just
ignore fields it does not understand. I'll plan on having custota-tool
output all fields forever for future backwards compatibility.

Issue: #94

Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this pull request Oct 18, 2024
Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit 54a776a into master Oct 18, 2024
6 checks passed
@chenxiaolong chenxiaolong deleted the lenient-parsing branch October 18, 2024 01:50
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