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

Temporarily disable configuration cache #483

Closed
mvicsokolova opened this issue Oct 21, 2024 · 3 comments
Closed

Temporarily disable configuration cache #483

mvicsokolova opened this issue Oct 21, 2024 · 3 comments
Assignees
Labels

Comments

@mvicsokolova
Copy link
Collaborator

With enabled configuration cache, atomicfu:publish started to fail with the following error:

Invocation of 'Task.project' by task ':atomicfu:cinteropInteropAndroidNativeArm32' at execution time is unsupported.
Invocation of 'Task.project' by task ':atomicfu:cinteropTestInteropAndroidNativeArm32' at execution time is unsupported.
Invocation of 'Task.project' by task ':atomicfu:cinteropInteropAndroidNativeArm64' at execution time is unsupported.
Invocation of 'Task.project' by task ':atomicfu:cinteropTestInteropAndroidNativeArm64' at execution time is unsupported.
Invocation of 'Task.project' by task ':atomicfu:cinteropInteropAndroidNativeX64' at execution time is unsupported.

I could not reproduce this locally, but here is the Windows deploy build and the gradle scan of this build.

Seems (according to the scan), that the problem may be caused by the access to the project during execution from org.jetbrains.kotlin.gradle.tasks.CInteropProcess#toGist() which is incompatible with configuration caches and causes this problem.

So, for now I'll disable configuration cache in the project, so that the release could be published.

@mvicsokolova
Copy link
Collaborator Author

@dkrasnoff could you please take a look at this problem 🙏
This only reproduced at deploy and was not discovered during review :(

mvicsokolova added a commit that referenced this issue Oct 21, 2024
@dkrasnoff
Copy link
Contributor

This is a really nasty problem because, as I understand, org.JetBrains.kotlin.gradle.tasks.CInteropProcess#toGist() just hides the real problem.
I could not reproduce it locally as well, even on a Windows machine.

@dkrasnoff
Copy link
Contributor

Yeah, as I thought the problem is not in the KGP and CInteropProcess, but they are hiding the real problem under false-positive error messages.
The real problem is in credential block in publishing, which is unsupported by Configuration Cache now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants