Skip to content

minatools/libp2p_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mina go-libp2p helper

libp2p_helper hints

If you are adding new methodIdx values, edit generate_methodidx/main.go (search for TypesAndValues) with the names of the new values. Then, run go run generate_methodidx/main.go > libp2p_helper/methodidx_jsonenum.go.

bazel

$ bazel build src/generate_methodidx
$ bazel run src/generate_methodidx
$ bazel build src:codanet
$ bazel build src/libp2p_helper

maintenance

Install Gazelle.

Update the bootstrap code responsible for loading Go deps:

$ bazel run //:gazelle -- update-repos -from_file=src/go.mod -to_macro bzl/libp2p/deps.bzl%libp2p_bootstrap

Update the build files: $ bazel run //:gazelle update

Go libs containing protobuf stuff: add build_file_proto_mode = "disable_global" to the go_library rule in //bzl/deps.bzl. Also add # gazelle:proto disable_global to the root WORKSPACE.bazel file. See Go Protocol buffers - avoiding conflicts: Option 2: Use pre-generated .pb.go files. for more info.