Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Newbie - cannot build #26

Open
dave1667 opened this issue Mar 26, 2019 · 5 comments
Open

Newbie - cannot build #26

dave1667 opened this issue Mar 26, 2019 · 5 comments

Comments

@dave1667
Copy link

Ubuntu 18.04 and bazel 0.23.2
Got this:
~/projects/graphd/graphd$ bazel build graphd
ERROR: /home/davew/.cache/bazel/_bazel_davew/e086e969cb9399a22ef830356847de91/external/go_sdk/BUILD.bazel:52:1: no such target '@io_bazel_rules_go//go:toolchain': target 'toolchain' not declared in package 'go'; however, a source directory of this name exists. (Perhaps add 'exports_files(["toolchain"])' to go/BUILD, or define a filegroup?) defined by /home/davew/.cache/bazel/_bazel_davew/e086e969cb9399a22ef830356847de91/external/io_bazel_rules_go/go/BUILD.bazel and referenced by '@go_sdk//:go_android_arm'
ERROR: While resolving toolchains for target //graphd:graphd: invalid registered toolchain '@go_sdk//:go_android_arm': Analysis failed
ERROR: Analysis of target '//graphd:graphd' failed; build aborted: Analysis failed
INFO: Elapsed time: 3.304s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (10 packages loaded, 28 targets configured)

----end----
Get a similar issue on Win10...

Thanks, Dave W

@teeler
Copy link
Contributor

teeler commented Mar 26, 2019

Go rules might be out of date?

Can you try replacing the http_archive rules in https://github.com/google/graphd/blob/master/WORKSPACE#L2-L6 to be:

http_archive(
    name = "io_bazel_rules_go",
    urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.1/rules_go-0.18.1.tar.gz"],
    sha256 = "77dfd303492f2634de7a660445ee2d3de2960cbd52f97d8c0dffa9362d3ddef9",
)

?

@dave1667
Copy link
Author

dave1667 commented Mar 26, 2019 via email

@teeler
Copy link
Contributor

teeler commented Mar 26, 2019

Nice, wanna send the PR?

@dave1667
Copy link
Author

dave1667 commented Mar 26, 2019 via email

@teeler
Copy link
Contributor

teeler commented Mar 26, 2019 via email

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

No branches or pull requests

2 participants