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

Realize Reproducible Builds by stabilize name of the KoinMeta file #196

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

KengoTODA
Copy link

Current implementation decides the name of KoinMeta file randomly, and it makes the build not reproducible. In other words, kspKotlin task generates different output even when input is same.

By this behaviour, Gradle tasks depending on the generated KoinMeta file like compileKotlin are executed even though no code has been changed. I will share screenshot of Gradle build scan for reference:

image

I want to suggest this change to stabilize name of the KoinMeta file. By this change, koin-ksp-compiler will compute digest of generated file, then use it to name the KoinMeta file. It will make the kspKotlin task reproducible, and make successor tasks able to use build cache.

@KengoTODA
Copy link
Author

note that this change includes the fix suggested by #195

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.

1 participant