Skip to content

Conversation

Bencodes
Copy link
Collaborator

@Bencodes Bencodes commented Feb 23, 2024

Moving the assertions over so that we are comparing the exact expected jdeps to the actual jdeps.

This avoids us making changes that accidentally leak types between the different dependency types.

}
block(c.outputJar().compileKotlin())
})
return ctx.runCompileTask(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Formatting changes.

assertImplicit(jdeps).isEmpty()
assertUnused(jdeps).isEmpty()
assertIncomplete(jdeps).isEmpty()
val jdeps = depsProto(dependingTarget)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To de-risk this PR I left the original assertions in place until I finished making all of the new assertions pass.

@restingbull restingbull merged commit 73a135a into master Mar 1, 2024
@restingbull restingbull deleted the refactor-kotlinbuilderjvmjdepstest-to-do-exact-dep-assertions branch March 1, 2024 18:18
oliviernotteghem pushed a commit to uber-common/rules_kotlin that referenced this pull request Aug 2, 2024
oliviernotteghem pushed a commit to uber-common/rules_kotlin that referenced this pull request Aug 2, 2024
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