Hi all. Hopefully this is an easy one. I'm working...
# caching
j
Hi all. Hopefully this is an easy one. I'm working with a custom kotlin plugin that is adding a
SubpluginOption
that contain an absolute path to a directory. I think this is breaking my build cache and I'm wondering if that should just be changed to store a relative file path, or if there is a better way to provide an absolute file path so that Gradle can interpret it as a relative path.
v
I'm not sure how many people here are familiar with writing Kotlin compiler plugin. You maybe might need to ask in the Kotlin Slack instead.
j
Thanks figured it might be a long shot
t
Yes, currently
SubpluginOptions
API is under-developed and could lead to cache issues, specifically for file options. We have plans to improve it
j
Is there any recommended path right now for putting a file path in as a SubpluginOption. I'm not sure if the FilesSubpluginOption was meant to serve that purpose
t
not really 😞
j
Okay. Thankfully we can work around that for now!
t
FilesSubpluginsOptions
options marked as
@Internal
so while they are not breaking the cache, they also may lead to false errors
j
👍