-
Notifications
You must be signed in to change notification settings - Fork 9
add JSON serialization example for Kotlin #1
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
Conversation
Note: I pushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
CI failure:
https://github.com/pantsbuild/example-kotlin/runs/6438158675?check_suite_focus=true#step:6:11 @stuhood / @chrisjrn: Thoughts on this failure? |
Bug... It looks like this code is looking at a loop variable: https://github.com/pantsbuild/pants/blob/43a3ab258f36e74a84ea2b2091c5a374259677d4/src/python/pants/jvm/compile.py#L121-L125 |
Good eyes! |
pantsbuild/pants#15494 appears to fix the issue. |
…entations (#15494) The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable. h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment) [ci skip-rust] [ci skip-build-wheels]
…entations (pantsbuild#15494) The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable. h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment) [ci skip-rust] [ci skip-build-wheels]
…entations (pantsbuild#15494) The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable. h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment) [ci skip-rust] [ci skip-build-wheels]
…entations (Cherry pick of #15494) (#15497) The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable. h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment) [ci skip-rust] [ci skip-build-wheels]
…entations (Cherry pick of #15494) (#15496) The conditional logic which checked for a root-only `ClasspathEntryRequest` implementation in a non-root position looked at a loop variable which could be unrelated to the compatible `ClasspathEntryRequest` implementation at issue. Solution: Check the root-only status of the compatible `ClasspathEntryRequest` implementation and avoid checking the loop variable. h/t to @stuhood for spotting the bug. pantsbuild/example-kotlin#1 (comment) [ci skip-rust] [ci skip-build-wheels]
Add a contrived example of using the Kotlin Serialization plugin to encode and decode JSON data.