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

Script deploy-hilt.sh fails #1812

Closed
quiro91 opened this issue Apr 14, 2020 · 3 comments · Fixed by #1844
Closed

Script deploy-hilt.sh fails #1812

quiro91 opened this issue Apr 14, 2020 · 3 comments · Fixed by #1844
Assignees

Comments

@quiro91
Copy link

quiro91 commented Apr 14, 2020

Running the script:

./util/deploy-hilt.sh  install:install-file LOCAL-SNAPSHOT

fails with the following error:

ERROR: /Users/lorenzo/projects/dagger/java/dagger/hilt/android/processor/BUILD:39:1: error executing shell command: '/bin/bash -c 
  JAVA_HOME="$(cd "external/local_jdk" && pwd)" # this is used outside of the root

  TMPDIR=$(mktemp -d)
  for jar in bazel-out/darwin-fastbuild/bin/java/dagger/hilt/android/processo...' failed (Exit 1) bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
Error: duplicate files in merged jar: META-INF/gradle/incremental.annotation.processors~5
META-INF/gradle/incremental.annotation.processors~2
META-INF/gradle/incremental.annotation.processors~3
META-INF/gradle/incremental.annotation.processors~4
META-INF/gradle/incremental.annotation.processors~1
META-INF/gradle/incremental.annotation.processors~6
META-INF/gradle/incremental.annotation.processors~7
META-INF/gradle/incremental.annotation.processors~
META-INF/services/javax.annotation.processing.Processor~7
META-INF/services/javax.annotation.processing.Processor~6
META-INF/services/javax.annotation.processing.Processor~1
META-INF/services/javax.annotation.processing.Processor~
META-INF/services/javax.annotation.processing.Processor~4
META-INF/services/javax.annotation.processing.Processor~3
META-INF/services/javax.annotation.processing.Processor~2
META-INF/services/javax.annotation.processing.Processor~5
INFO: Elapsed time: 0.391s, Critical Path: 0.29s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
@danysantiago
Copy link
Member

Are you on Mac OS?

I think this was my fault (sorry!), caused by the changes here: google/bazel-common@bf87eb1. I believe the find between Mac (BSD version) and Linux (GNU version) differ in the supported regex syntax.

@quiro91
Copy link
Author

quiro91 commented Apr 22, 2020

Yes, I am on MacOS. Ah, interesting, didn't know that :)

@kokeroulis
Copy link

I am facing the same issue here. Yes i am on MacOS too... Is there any workaround around this?

kluever pushed a commit that referenced this issue May 13, 2020
Fixes #1812

RELNOTES=Fix deploy script for Mac by updating bazel_common containing a fix in the jarjar macro.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=311169973
kluever pushed a commit that referenced this issue May 13, 2020
Fixes #1812

RELNOTES=Fix deploy script for Mac by updating bazel_common containing a fix in the jarjar macro.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=311169973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants