From d5c99b761e7e2ab2a3f08ee434e493cd39b0dd24 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 8 Jul 2024 09:12:18 +0200 Subject: [PATCH] pricesrpc: fix build tag formatting --- pricesrpc/gen_protos.sh | 4 ++-- pricesrpc/prices.pb.json.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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