Closed Konafets closed 1 year ago
The /ides
at the end is redundant and ends up in producing ~/.pluginVerifier/ides/ides
.
How?
Here the env var pluginVerifierHomeDir
is set to ~/.pluginVerifier
.
In the cache step, the path is set to ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
which evaluates to ~/.pluginVerifier/ides
and for the Plugin Verification task the path is set also to ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
which evaluates to ~/.pluginVerifier/ides
. I do not see where ides
is added twice.
Do you have any log or debug information which you can share, where the redundant path can be seen?
In the cache step, the pluginVerifierHomeDir
is reused with /ides
appended to instruct the cache mechanism to take care only of the/ides
subdirectory.
But later, when passing this variable as a plugin.verifier.home.dir
system property, it has to point to the "root" PV home directory, not the ides
subdirectory. This is because Gradle IntelliJ Plugin reads it here:
and then uses it to resolve the ideDownloadDir
using that PV home directory and adds the ides
subdirectory to it, as follows:
To test this behavior, you can locally run:
./gradlew runPluginVerifier -Dplugin.verifier.home.dir=~/.pluginVerifier/ides
and check if it creates the ~/.pluginVerifier/ides/ides
directory for you.
Ok, I see. Are you ok with adding a comment like
// Do not append folder
/ides
as this is added by the Gradle plugin
That's unnecessary.
Updated the PR.
Thanks!
Closes https://github.com/JetBrains/intellij-platform-plugin-template/issues/339