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

Error with make deploy: bazel: no such file or directory #5

Open
rcholic opened this issue Dec 5, 2018 · 2 comments
Open

Error with make deploy: bazel: no such file or directory #5

rcholic opened this issue Dec 5, 2018 · 2 comments

Comments

@rcholic
Copy link

rcholic commented Dec 5, 2018

Everything works file until I execute the make deploy, errors below:

dep ensure
bazel run //:gazelle -- update-repos -from_file=Gopkg.lock
make: bazel: No such file or directory
make: *** [gazelle-repos] Error 1

It's my first time using bazel, so I'm not sure what file or dir is missing here.

@lucperkins
Copy link
Owner

Which version of Bazel do you have installed?

@rcholic
Copy link
Author

rcholic commented Dec 5, 2018

I just installed the latest version: 0.20.0
The issue I posted was due to incorrect installation of bazel. After I re-installed it, I got a new issue as following:

dep ensure
bazel run //:gazelle -- update-repos -from_file=Gopkg.lock
(21:44:20) WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
(21:44:20) INFO: Invocation ID: ba91dd3b-3322-446a-aa84-75e179ff9062
(21:44:20) INFO: Current date is 2018-12-04
(21:44:20) ERROR: error loading package '': Encountered error while reading extension file 'maven/rules.bzl': no such package '@org_pubref_
rules_maven//maven': The native git_repository rule is deprecated. load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") for a replacement.
Use --incompatible_remove_native_git_repository=false to temporarily continue using the native rule.
(21:44:20) ERROR: Skipping '//:gazelle': error loading package '': Encountered error while reading extension file 'maven/rules.bzl': no suc
h package '@org_pubref_rules_maven//maven': The native git_repository rule is deprecated. load("@bazel_tools//tools/build_defs/repo:git.bzl
", "git_repository") for a replacement.
Use --incompatible_remove_native_git_repository=false to temporarily continue using the native rule.
(21:44:20) WARNING: Target pattern parsing failed.
(21:44:20) WARNING: No targets found to run. Will continue anyway
(21:44:20) ERROR: error loading package '': Encountered error while reading extension file 'maven/rules.bzl': no such package '@org_pubref_
rules_maven//maven': The native git_repository rule is deprecated. load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") fo
r a replacement.
Use --incompatible_remove_native_git_repository=false to temporarily continue using the native rule.
(21:44:20) INFO: Elapsed time: 0.430s
(21:44:20) INFO: 0 processes.
(21:44:20) FAILED: Build did NOT complete successfully (0 packages loaded)
(21:44:20) FAILED: Build did NOT complete successfully (0 packages loaded)
    Fetching @org_pubref_rules_maven; fetching
make: *** [gazelle-repos] Error 2

thanks a lot

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

No branches or pull requests

2 participants