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

Align klib validation behavior for empty projects with other targets #247

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

fzhinkin
Copy link
Collaborator

@fzhinkin fzhinkin commented Jul 2, 2024

After #243 resolution, JVM/JVM on KMP/KMP projects validation behavior remained different for projects without non-test sources or without published API:

  • For JVM projects (of all kinds), we generate empty dump files and verify that the dump remained empty on apiCheck execution;
  • For KMP KLib-targets, dump generation is skipped for such projects; the validation fails due to a missing dump file.

This PR addresses #246 and aligns KMP validation behavior for empty projects with how JVM ABI validation works for them.

@fzhinkin fzhinkin requested a review from shanshin July 2, 2024 09:59
@fzhinkin fzhinkin marked this pull request as ready for review July 2, 2024 09:59
@fzhinkin fzhinkin linked an issue Jul 2, 2024 that may be closed by this pull request
@@ -56,7 +56,6 @@ public class KlibDumpMetadata(
* Instead, a dependent task will be skipped.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment isn't actual

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated

src/main/kotlin/-Utils.kt Show resolved Hide resolved
@fzhinkin fzhinkin requested a review from shanshin July 5, 2024 13:08
@fzhinkin fzhinkin merged commit e2c1ae3 into develop Jul 5, 2024
3 checks passed
@fzhinkin fzhinkin deleted the 246-handle-empty-klib-dumps-gracefully branch July 5, 2024 14:04
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.

JVM/Android-only modules create empty klib.api file on 0.15.0-Beta.3
2 participants