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

Introduce AnvilKspOptionsProvider #44

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Introduce AnvilKspOptionsProvider #44

merged 2 commits into from
Aug 8, 2024

Conversation

ZacSweers
Copy link
Owner

In order for CommandLineArgumentProvider to work correctly, it needs to internally track its inputs as a managed object. Prior to this, changes to providers would not actually invalidate a KSP task's inputs and result in incorrect cache hits since the pluginOptions themselves under the hood are deemed internal and ignored.

This fixes it by creating a new AnvilKspOptionsProvider managed type with a MapProperty that tracks the inputs. This is appropriately wired in KspTask as a @Nested input, which then fixes this cache hit issue.

In order for `CommandLineArgumentProvider` to work correctly, it needs to internally track its inputs as a managed object. Prior to this, changes to providers would not actually invalidate a KSP task's inputs and result in incorrect cache hits since the pluginOptions themselves under the hood are deemed internal and ignored.

This fixes it by creating a new `AnvilKspOptionsProvider` managed type with a `MapProperty` that tracks the inputs. This is appropriately wired in `KspTask` as a `@Nested` input, which then fixes this cache hit issue.
@ZacSweers ZacSweers merged commit 07ab80f into main Aug 8, 2024
16 checks passed
@ZacSweers ZacSweers deleted the z/fixCLAP branch August 8, 2024 18:40
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