question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install guide is outdated. | Bazel fails to build

See original GitHub issue

Looks like the install guide is outdated due to folder hierarchy has changed. Install guide shows that java folder is in root of nomulus git clone folder. No longer the case. Ive tried adapting to the folder structure. I created the WORKSPACE, ref’d the folder as per the guide. I continue to fail to build. nomulus /core/src/main/ java/google/registry/

ERROR: Skipping '//core/src/main/java/google/registry/...': no targets found beneath 'core/src/main/java/google/registry'
ERROR: no targets found beneath 'core/src/main/java/google/registry'

To be fair I used git clone https://github.com/google/nomulus.git instead of git clone git@github.com:google/nomulus.git however Im not aware of a difference in the results as I dont believe the folder structure should change based on https vs ssh.

git clone section

Install Guide Output

$ git clone git@github.com:google/nomulus.git
Cloning into 'nomulus'...
[ .. snip .. ]
$ cd nomulus
$ ls
apiserving       CONTRIBUTORS  java        LICENSE    scripts
AUTHORS          docs          javascript  python     third_party
CONTRIBUTING.md  google        javatests   README.md  WORKSPACE

Real Life Output

cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$ ls
appengine_war.gradle  buildSrc         CONTRIBUTORS  dependencies.gradle    gradle             gradlew.bat         LICENSE           package-lock.json  proxy      release          third_party
AUTHORS               config           core          dependency_lic.gradle  gradle.properties  java_common.gradle  nomulus-logo.png  prober             python     services         util
build.gradle          CONTRIBUTING.md  db            docs                   gradlew            java-format         package.json      projects.gradle    README.md  settings.gradle  utils.gradle
cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$

FAILS TO BUILD BAZEL

cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$ bazel version
Build label: 0.25.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed May 1 21:45:01 2019 (1556747101)
Build timestamp: 1556747101
Build timestamp as int: 1556747101
cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$
cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$ touch core/src/main/java/google/registry/WORKSPACE
cnsdomainregistar@cloudshell:~/nomulus (nomulus-project)$ bazel --batch  build --javacopt="-target 8 -source 8" //core/src/main/java{,tests}/google/registry/...
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
ERROR: Skipping '//core/src/main/java/google/registry/...': no targets found beneath 'core/src/main/java/google/registry'
ERROR: no targets found beneath 'core/src/main/java/google/registry'
INFO: Elapsed time: 1.695s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jianglaicommented, Nov 21, 2019

@mindhog It looks like we should probably have a fix-it hackathon to fix all the docs, including external docs, rather than doing it piecemeal. There are also some internal docs like how to create a registrar contact and enable console access that should be moved to external as well. What do you think?

0reactions
mindhogcommented, Dec 7, 2020

Sorry to have dropped the ball on this. The install doc, at least, was updated this year: https://github.com/google/nomulus/blob/master/docs/install.md Most of the other docs should be as well, though it appears that “developing” still references bazel.

If you’re still interested, please give it a try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commands and Options | Bazel
This option sets the label of the base Java installation to use in the host configuration, for example for host build tools including...
Read more >
Building with Bazel - Gerrit Code Review
The Gerrit build works with Bazel's IntelliJ plugin. Please follow the instructions on IntelliJ Setup. Eclipse. Generating the Eclipse Project. Create the ...
Read more >
Error building TensorFlow 2.8 in Windows 10
My installed versions are: TensorFlow source, git branch r2.8. Windows 10, version 20H2 Build 19042.1526. Cuda Toolkit 11.2 cuDNN 8.1. Bazel ...
Read more >
CLion IDE setup - Drake
This guide describes how to set up Drake in the JetBrains CLion IDE on Ubuntu. Using CLion with Bazel. First, you must install...
Read more >
How to build bazel for mips64el arch - Google Groups
When i build bazel at mips64el arch, i get naxt error. ... The full install instructions to install a release version of bazel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found