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.

Error running parse from a different repository

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
johnynekcommented, Mar 2, 2020

Please reopen if you feel the issue is still a problem.

0reactions
ianoccommented, Mar 2, 2020

@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

Read more comments on GitHub >

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

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