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

okbuck fails with Gradle 5.1.1+ (Could not create symlink: FileAlreadyExistsException) #873

Closed
anoopc1 opened this issue Aug 28, 2019 · 1 comment

Comments

@anoopc1
Copy link

anoopc1 commented Aug 28, 2019

Exception Details (complete-stack-trace)

Could not create symlink /<repo>/.okbuck/ext/<module-path>/data-collector-3.4.0-sources.jar -> /<home>/.gradle/caches/modules-2/files-2.1/<module-path>/3.4.0/6f4575ecbe152398e73e6189cfa76a5a429391d2/data-collector-3.4.0-sources.jar

Caused by: java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /<repo>/.okbuck/ext/<module-path>/data-collector-3.4.0-sources.jar
        at com.uber.okbuck.core.util.FileUtil.symlink(FileUtil.java:124)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$createSymlinks$22(DependencyManager.java:422)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$createSymlinks$23(DependencyManager.java:420)
        at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:407)
        at com.uber.okbuck.core.manager.DependencyManager.createSymlinks(DependencyManager.java:412)
        at com.uber.okbuck.core.manager.DependencyManager.lambda$processDependencies$20(DependencyManager.java:393)
        at com.uber.okbuck.core.manager.DependencyManager.processDependencies(DependencyManager.java:352)
        at com.uber.okbuck.core.manager.DependencyManager.finalizeDependencies(DependencyManager.java:102)
        at com.uber.okbuck.OkBuckGradlePlugin.lambda$apply$0(OkBuckGradlePlugin.java:192)

Setup:

okbuck: 0.48.7
AGP: 3.3.2
Gradle: 5.1.1

okbuck external dependency configuration:

okbuck {
  externalDependencies {
    downloadInBuck = false
    autoValueConfigurations = [ ...]
  }
  ...
}

moduleA/build.gradle

dependenices {
  api 'com.paypal.android.sdk:paypal-one-touch:3.4.0'
  ...
}
...

Steps to reproduce:
.\buckw root

@kageiit
Copy link
Contributor

kageiit commented Jul 17, 2020

This should not longer be an issue with the latest okbuck. Please re-open if it happens on latest

@kageiit kageiit closed this as completed Jul 17, 2020
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

No branches or pull requests

2 participants