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

Fix proto dependency conflicts for prysm, issues building go_path. #13

Open
wants to merge 1 commit into
base: dv5
Choose a base branch
from
Open

Fix proto dependency conflicts for prysm, issues building go_path. #13

wants to merge 1 commit into from

Conversation

gnattishness
Copy link

Various fixes that allow this to be part of a go_path rule (see commit msg).

Aim is to for prysm and dependencies to be exported into a GOPATH-style directory structure suitable for go build (e.g. for custom go-build used for fuzzing).

@CLAassistant
Copy link

CLAassistant commented Nov 18, 2019

CLA assistant check
All committers have signed the CLA.

@prestonvanloon
Copy link
Member

Can you elaborate on the original issue?

@prestonvanloon
Copy link
Member

Specifically wondering what prompted this as several members of the team use go build for prysm.

@gnattishness
Copy link
Author

Please see prysmaticlabs/prysm#4024

@prestonvanloon prestonvanloon self-requested a review November 18, 2019 06:38
],
patch_args = ["-p1"],
patches = [
# TODO remove patch once https://github.com/bazelbuild/rules_go/pull/2283 is merged
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets block this until this PR is merged in rules_go , other than that looks good to me

Remove `#gazelle:proto disable-global` directive causing proto clashes
with well known types.

Add `#gazelle:proto disable` directive for trezor proto files, and fix
trezor proto dep clash for WKT.

Add a cc_library rule for libsecp256k1, srcs and hdrs filegroups.

Secp256k1 target to use the filegroups for libsecp256k1 files.

Resolve go_path build clash for libsecp256k1 `.h` files with the same
basename.

Update core rules in workspace, inc go_path fix patch.
@gnattishness
Copy link
Author

Now using native cc_library rule, not trying to load anything.

cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Mar 10, 2020
Fix protobuf dependency conflicts for well known types.
(as described in
https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#avoiding-conflicts)

Add rules_go go_path patch to fix clashes for deep cgo c files.
(See bazel-contrib/rules_go#2283)

Add bazel-go-ethereum fixes as a patch.
(See prysmaticlabs/bazel-go-ethereum#13)

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

Successfully merging this pull request may close these issues.

4 participants