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.

bazel build oauth fail, no such package '@scribe//jar'

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
davidocommented, Sep 27, 2019

I am afraid I am not able to assist you here.

1reaction
davidocommented, Sep 27, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

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