bazel build oauth fail, no such package '@scribe//jar'
See original GitHub issueI want to change the API in Office365Api.java from https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize to https://login.microsoftonline.com/common/oauth2/v2.0/authorize
so I git clone the gerrit source code and clone gerrit-oauth-provider into gerrit/plugins folder
I can “bazel build gerrit” build gerrit.war success and also “bazel build plugins/plugin-manager:plugin-manager” build pass but “bazel build plugins/oauth:oauth” fail, error message as below
$ bazel build plugins/oauth:oauth
INFO: Invocation ID: 0630d0bf-382e-42e9-b1b3-f35a33cc34ad
ERROR: /disk2/github/gerrit/plugins/oauth/BUILD:10:1: no such package '@scribe//jar': The repository '@scribe' could not be resolved and referenced by '//plugins/oauth:oauth__plugin'
ERROR: Analysis of target '//plugins/oauth:oauth' failed; build aborted: no such package '@scribe//jar': The repository '@scribe' could not be resolved
INFO: Elapsed time: 0.071s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
any idea how to deal with it?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
bazel build error: no such package '@protobuf//' · Issue #10718
Build from master 0d2f691, but encounter with the error of "/tensorflow/tools/pip_package/BUILD:94:1: no such package '@protobuf//': ...
Read more >compile Gerrit with bazel get error : no such package '@jgit ...
compile Gerrit with bazel get error : no such package '@jgit//org.eclipse.jgit.junit': No WORKSPACE file found in. 172 views.
Read more >Gerrit build with bazel: maven2 jar sh1 not match
My build environment is Ubuntu 14.04.6, Python v3.4.3, java 8, nodejs v8.9.3, apache/2.4.7, Maven 3.0.5 I use "bazel build release" to build ...
Read more >Easier Debugging of Sandbox Failures - Bazel Blog
We have often heard that debugging failed execution due to issues with ... '//path/to/your/project:all' failed: No such file or directory.
Read more >The connection test of the OAuth 2.0 integration fails with the ...
The user who logged into the Microsoft Portal while testing the Oauth 2.0 integration does not have the permission to authorize this integration,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am afraid I am not able to assist you here.
You are welcomed. Have you considered to upload the fix to the oauth plugin: [1], so that other users can benefit from it?
[1] https://gerrit-review.googlesource.com/admin/repos/plugins/oauth