-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't implicitly run generateMetricsMarkdown when writing locks #283
Conversation
Generate changelog in
|
👎 Its actually pretty important that That being said we should definitely look into ways to make generating markdown as cheap as possible. |
How is this any different than It just seems odd that we're taking an inconsistent position here. Without this PR, palantir/gradle-baseline#1389 doesn't really provide any benefit because I still need to compile all my code every time I run |
I agree that the inconsistency is confusing and I wasn't aware that the change was made. I think there is a difference since it is much more uncommon for an excavator to result in conflicting classes and it the cases where they do it can be valuable to require the repo owner to consider the conflict. Meanwhile I don't think its valuable to force repo owners to accept every change to the metrics produced by a library. I'm sympathetic to the concern though, so I'd like to spend some time investigating how we can get the behaviour we want without needing to compile the world. |
Huge +1 to what @pkoenig10 is saying here, As a more meta-point, this setup is extremely opaque and difficult to disable. It required me to trace through multiple build scans investigating top level tasks in order to discover which one was triggering the compile task. This was made even more difficult given that nothing in PGDev actually references this task by name. After a Google search I was able to discover that this plugin hijacked As a workaround I am forced to disable the task explicitly |
Should be fixed by #313 which allows us to avoid compilation when updating the metrics markdown |
Similar to palantir/gradle-baseline#1389.
Before this PR
Running
./gradlew --write-locks
triggersgenerateMetricsMarkdown
which requires compiling all projects that are dependencies of the distribution project.After this PR
Running
./gradlew --write-locks
does not triggergenerateMetricsMarkdown
. To update the generated markdown users need to run./gradlew generateMetricsMarkdown --write-locks
explicitly.