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

fix(developer): non-minimal BCP 47 tags in kps should be a hint 🎺 #9712

Merged

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Oct 8, 2023

Fixes #9266.

For historical reasons there are many non-minimal BCP 47 tags in package metadata in the repository (over 2500). Furthermore, earlier versions of kmcomp did not fail the build on package compilation warnings. This means it is better to reduce WARN_LanguageTagIsNotMinimal to HINT_LanguageTagIsNotMinimal, so that we can otherwise respect the 'treat warnings as errors' flag on the keyboard projects.

We may be able to upgrade this to a warning again one day in the future.

TODO:

  • we need to treat WARN_PackageShouldNotRepeatLanguages the same way for the same reason

@keymanapp-test-bot skip

Fixes #9266.

For historical reasons there are many non-minimal BCP 47 tags in package
metadata in the repository (over 2500). Furthermore, earlier versions of
kmcomp did not fail the build on package compilation warnings. This
means it is better to reduce WARN_LanguageTagIsNotMinimal to
HINT_LanguageTagIsNotMinimal, so that we can otherwise respect the
'treat warnings as errors' flag on the keyboard projects.

We may be able to upgrade this to a warning again one day in the future.
@mcdurdin mcdurdin requested a review from darcywong00 as a code owner October 8, 2023 22:23
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 8, 2023

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot changed the title fix(developer): non-minimal BCP 47 tags in kps should be a hint fix(developer): non-minimal BCP 47 tags in kps should be a hint 🎺 Oct 8, 2023
@keymanapp-test-bot keymanapp-test-bot bot added this to the A17S23 milestone Oct 8, 2023
@github-actions github-actions bot added the fix label Oct 8, 2023
Part of #9266.

Also cleans up filenames for hint_language_tag_is_not_minimal, and fixes
a bug in transformKpsToKmpObject where a null object could be passed on
to another function in case of failure.
Base automatically changed from refactor/developer/9708-keyboard_info-example-keys-as-string to epic/package-metadata October 11, 2023 00:18
@mcdurdin mcdurdin merged commit a6e737a into epic/package-metadata Oct 11, 2023
@mcdurdin mcdurdin deleted the fix/developer/9266-non-minimal-tags-as-hint branch October 11, 2023 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

question(developer): how do we handle non-minimal tags using kmc on keyboards repo 🗜
2 participants