Skip to content

Commit

Permalink
Fail fast when using old define=ssz=<value> (prysmaticlabs#9316)
Browse files Browse the repository at this point in the history
* Fail fast when using old define=ssz=<value>

* remove print statement
  • Loading branch information
prestonvanloon authored Aug 2, 2021
1 parent 17cf2e5 commit 9572add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ build --sandbox_default_allow_network=false
build --workspace_status_command=./scripts/workspace_status.sh
build --stamp

# Use mainnet protobufs at runtime
run --define ssz=mainnet
test --define ssz=mainnet
build --define ssz=mainnet

# Prevent PATH changes from rebuilding when switching from IDE to command line.
build --incompatible_strict_action_env
test --incompatible_strict_action_env
Expand Down
3 changes: 3 additions & 0 deletions tools/ssz.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ load(
)

def _ssz_go_proto_library_impl(ctx):
if ctx.var.get("ssz"):
fail("--define=ssz=<value> is no longer supported, please use --//proto:network=<value>")

if ctx.attr.go_proto != None:
go_proto = ctx.attr.go_proto
input_files = go_proto[OutputGroupInfo].go_generated_srcs.to_list()
Expand Down

0 comments on commit 9572add

Please sign in to comment.