Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Unpredictable "missing input file" error #77

Open
drigz opened this issue Jan 17, 2018 · 3 comments
Open

Unpredictable "missing input file" error #77

drigz opened this issue Jan 17, 2018 · 3 comments

Comments

@drigz
Copy link

drigz commented Jan 17, 2018

Twice we have seen an error looking like this:

ERROR: missing input file '@org_apache_httpcomponents_httpclient//jar:httpclient-4.0.1.jar'
ERROR: [SNIP]/src/java/BUILD.bazel:105:1: //src/java:cloud_registry: missing input file '@org_apache_httpcomponents_httpclient//jar:httpclient-4.0.1.jar'
ERROR: [SNIP]/src/java/BUILD.bazel:105:1 1 input file(s) do not exist
INFO: Elapsed time: 420.080s, Critical Path: 127.06s
FAILED: Build did NOT complete successfully

The missing jar is not always the same. Retrying the build doesn't help, but bazel clean --expunge does. Unfortunately I don't have a way to reproduce it, but it seems to happen when the system hasn't rebuilt the Java targets in a while (maybe due to changes in the version on Maven?)

I know this isn't a very helpful bug report :) I'm posting in case anyone else is experiencing the same issue.

@kerinin
Copy link

kerinin commented May 25, 2018

I had the same problem, also have no idea how to reproduce it, and bazel clean --expunge fixed it.

@yinanfang
Copy link

I had the same problem too

@excavador
Copy link

I met this problem in following case: do NOT specify executable=True in rule but return DefaultInfo provider with executable inside

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

No branches or pull requests

4 participants