diff --git a/pricesrpc/gen_protos.sh b/pricesrpc/gen_protos.sh index f2de1c0..fbca45a 100755 --- a/pricesrpc/gen_protos.sh +++ b/pricesrpc/gen_protos.sh @@ -46,7 +46,7 @@ function generate() { # Generate the JSON/WASM client stubs. falafel=$(which falafel) pkg="pricesrpc" - opts="package_name=$pkg,js_stubs=1,build_tags=// +build js" + opts="package_name=$pkg,js_stubs=1,build_tags=//go:build js" protoc -I/usr/local/include -I. -I.. \ --plugin=protoc-gen-custom=$falafel\ --custom_out=. \ @@ -56,7 +56,7 @@ function generate() { PACKAGES="" for package in $PACKAGES; do - opts="package_name=$package,manual_import=$manual_import,js_stubs=1,build_tags=// +build js" + opts="package_name=$package,manual_import=$manual_import,js_stubs=1,build_tags=//go:build js" pushd $package protoc -I/usr/local/include -I. -I.. \ --plugin=protoc-gen-custom=$falafel\ diff --git a/pricesrpc/prices.pb.json.go b/pricesrpc/prices.pb.json.go index 8750a9f..c9aa2c6 100644 --- a/pricesrpc/prices.pb.json.go +++ b/pricesrpc/prices.pb.json.go @@ -1,7 +1,7 @@ // Code generated by falafel 0.9.1. DO NOT EDIT. // source: prices.proto -// +build js +//go:build js package pricesrpc