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

WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'rules_android' found. This will result in a failure if there's a reference to those rules or symbols. #24917

Open
Trang-Trinh43 opened this issue Jan 14, 2025 · 4 comments
Labels
team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts type: bug untriaged

Comments

@Trang-Trinh43
Copy link

Description of the bug:

I am trying to install cuttlefish follow guide: https://source.android.com/docs/devices/cuttlefish/get-started
In step: tools/buildutils/build_packages.sh I met an issue

Image

Where do the packages load?
Why I get fail message: failed: class java.net.SocketException Connection reset while I can access this link from browser?
https://github.com/bazelbuild/rules_java/releases/download/8.6.1/rules_java-8.6.1.tar.gz

Which category does this issue belong to?

Python Rules

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

ubuntu

What is the output of bazel info release?

8.0.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

https://github.com/google/android-cuttlefish
092281e5cbb081a07250fd892e96d1ea09f23a65

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@fmeum
Copy link
Collaborator

fmeum commented Jan 14, 2025

@ted-xie

@fmeum fmeum added team-Android Issues for Android team and removed team-Rules-Python Native rules for Python labels Jan 14, 2025
@ted-xie
Copy link
Contributor

ted-xie commented Jan 14, 2025

Hey @fmeum, why was the Android team tagged here? This looks like a client-side network issue.

The problem seems to be that @Trang-Trinh43 is unable to download the rules_java 8.6.1 zip file.

Where do the packages load?

In memory. The "loading" phase of Bazel is described here. But first, Bazel must download all relevant external dependencies such as rules_java.

Why I get fail message: failed: class java.net.SocketException Connection reset while I can access this link from browser?

Can you wget the rules_java zipfile from your terminal? Does the machine that is running Bazel have internet access? Does that machine have some kind of firewall that might block routability to https://bazel.build? Note that we can't really help you with network issues, only Bazel issues.

What's the output of git remote get-url origin; git rev-parse HEAD ?
https://github.com/google/android-cuttlefish
092281e5cbb081a07250fd892e96d1ea09f23a65

You are working within a Cuttlefish clone. This part of the questionaire is not super relevant unless you're working within a Bazel local checkout.

@ted-xie ted-xie removed the team-Android Issues for Android team label Jan 14, 2025
@ted-xie
Copy link
Contributor

ted-xie commented Jan 14, 2025

Ah, I just fully read the title of the issue, "WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'rules_android' found".

Somehow that text does not show up anywhere in this page?

@fmeum
Copy link
Collaborator

fmeum commented Jan 14, 2025

That should be silenced by eba2054

@iancha1992 iancha1992 added the team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts type: bug untriaged
Projects
None yet
Development

No branches or pull requests

6 participants