This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Newbie - cannot build #26
Comments
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:
? |
Here is WORKSPACE that was successful:
…----begin----
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
url =
"https://github.com/bazelbuild/rules_go/releases/download/0.18.1/rules_go-0.18.1.tar.gz",
sha256 =
"77dfd303492f2634de7a660445ee2d3de2960cbd52f97d8c0dffa9362d3ddef9",
)
http_archive(
name = "bazel_gazelle",
urls =
["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.14.0/bazel-gazelle-0.14.0.tar.gz"],
sha256 =
"c0a5739d12c6d05b6c1ad56f2200cb0b57c5a70e03ebd2f7b87ce88cabf09c7b",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies",
"go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
----end----
Note the ....."go:deps.bzl" versus the original "go:def.bzl" in github.
Thanks for your help.
Dave W
On 3/26/19 12:29 PM, teeler wrote:
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", ) |
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACZAMvyPkOR-Iuresq8nxhQFJVz3t6Qnks5vanUAgaJpZM4cLyrC>.
|
Nice, wanna send the PR? |
Just put committed it to:
https://github.com/cetaus/graphd/blob/master/WORKSPACE
From: teeler <[email protected]>
Sent: Tuesday, March 26, 2019 1:23 PM
To: google/graphd <[email protected]>
Cc: Dave Winters <[email protected]>; Author <[email protected]>
Subject: Re: [google/graphd] Newbie - cannot build (#26)
Nice, wanna send the PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#26 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ACZAMnt6jSy3lN2rx1pVsLJTJhmEfV84ks5vaoGqgaJpZM4cLyrC> . <https://github.com/notifications/beacon/ACZAMi8sEMHNzkBvWf3_r2Eo0I9PTOJUks5vaoGqgaJpZM4cLyrC.gif>
|
LG, send the pull request and i'll merge it
…On Tue, Mar 26, 2019 at 2:23 PM Dave Winters ***@***.***> wrote:
Just put committed it to:
https://github.com/cetaus/graphd/blob/master/WORKSPACE
From: teeler ***@***.***>
Sent: Tuesday, March 26, 2019 1:23 PM
To: google/graphd ***@***.***>
Cc: Dave Winters ***@***.***>; Author ***@***.***>
Subject: Re: [google/graphd] Newbie - cannot build (#26)
Nice, wanna send the PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <
#26 (comment)> , or
mute the thread <
https://github.com/notifications/unsubscribe-auth/ACZAMnt6jSy3lN2rx1pVsLJTJhmEfV84ks5vaoGqgaJpZM4cLyrC>
. <
https://github.com/notifications/beacon/ACZAMi8sEMHNzkBvWf3_r2Eo0I9PTOJUks5vaoGqgaJpZM4cLyrC.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AACxUx162G79d-KBu95XMoFEKu0cdlBaks5vao_CgaJpZM4cLyrC>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: