-
Notifications
You must be signed in to change notification settings - Fork 208
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
Snapshot output directory should be a task input not output #852
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,9 +179,11 @@ class PaparazziPlugin : Plugin<Project> { | |
test.inputs.files(nativePlatformFileCollection) | ||
.withPropertyName("paparazzi.nativePlatform") | ||
.withPathSensitivity(PathSensitivity.NONE) | ||
test.inputs.files(snapshotOutputDir) | ||
.withPropertyName("paparazzi.snapshot.output.dir") | ||
.withPathSensitivity(PathSensitivity.RELATIVE) | ||
|
||
test.outputs.dir(reportOutputDir) | ||
test.outputs.dir(snapshotOutputDir) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a feeling this ambiguity comes from the fact that the same task can run in record and verify modes. In record mode the output is snapshots, and in verify mode snapshots are input and the output is reports. Does this mean that adding |
||
|
||
@Suppress("ObjectLiteralToLambda") | ||
// why not a lambda? See: https://docs.gradle.org/7.2/userguide/validation_problems.html#implementation_unknown | ||
|
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.
Add "side note" as a comment here to prevent inadvertent future "optimizations"?