Error running parse from a different repository
See original GitHub issueI got the following snippet in my WORKSPACE
file to download bazel-deps
as an external dependency named bazel_deps
:
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "bazel_deps",
branch = "master",
remote = "https://github.com/johnynek/bazel-deps",
)
When I run bazel run @bazel_deps//:parse -- generate
, it returns an error:
ERROR: Skipping '@bazel_deps//:parse': error loading package '@bazel_deps//': Unable to find package for @io_bazel_rules_scala//scala:scala_toolchain.bzl: The repository '@io_bazel_rules_scala' could not be resolved.
However, if I cloned bazel-deps
manually instead of through bazel’s git_repository
rule, and run parsing with bazel run //:parse -- generate
, it seems to be running without problem.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
MacOS parse error and not a git repository #1240 - GitHub
I have upgraded to the latest GAM release from https://git.io/gamreleases and I still have this issue. Full steps to reproduce the issue:.
Read more >git clone makes an error zsh: parse error near '\n'
As seen here, using a git clone <url> would trigger the error message you are seeing. Instead, this would work, without <> :...
Read more >error: Could not read from object database for commit-graph
If all of dangling objects and objects that are pointed by "failed to parse commit" are unnecessary, I think an easiest workaround is:...
Read more >git clone - failed to parse remote - Visual Studio Feedback
But when I try to clone a repo in VS2017, after it downloads the files and creates the folders, it shows me "Failed...
Read more >Git error - Fatal: Not a git repository and how to fix it | Datree.io
This error means you attempted to run a Git command, but weren't inside a Git repository. Make sure you've: Navigated to the right...
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 FreeTop 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
Top GitHub Comments
Please reopen if you feel the issue is still a problem.
@lriuui0x0 we’ve added to the release tooling included binaries for linux + Mac that you should be able to use in a repository rule or via some bash scripts. It will also include a generated bash script to provide a getting started point once https://github.com/johnynek/bazel-deps/pull/283 lands