nomulus: Install guide is outdated. | Bazel fails to build
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.
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)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 32 (3 by maintainers)
@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?