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

Fail on unknown manifest keys + Add [tool] section for 3rd-party tools #329

Merged
merged 4 commits into from
Jan 8, 2024

Conversation

tingerrr
Copy link
Contributor

@tingerrr tingerrr commented Jan 7, 2024

This PR denies unknown fields in both the package manifest and package section of the manifest, ensuring typos are caught by CI. To still allow external configuration, 3rd-party tools can use an entry in the [tool] section of the document.

This change is backwards compatible with all existing packages, one notable packages came up during testing, drafting:0.1.2, which already used [tool] without my prior knowledge.

@tingerrr tingerrr force-pushed the tool-section branch 2 times, most recently from 732c4ee to 9415f1d Compare January 7, 2024 09:42
@tingerrr

This comment was marked as outdated.

tingerrr and others added 2 commits January 8, 2024 12:02
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
@laurmaedje laurmaedje merged commit 8dd51c4 into typst:main Jan 8, 2024
1 check passed
@laurmaedje
Copy link
Member

Thank you!

@tingerrr tingerrr deleted the tool-section branch January 8, 2024 14:01
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