pricesrpc: fix build tag formatting

This commit is contained in:
Oliver Gugger
2024-07-08 09:12:18 +02:00
parent 4c45bdd0e8
commit d5c99b761e
2 changed files with 3 additions and 3 deletions

View File

@@ -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\

View File

@@ -1,7 +1,7 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// source: prices.proto
// +build js
//go:build js
package pricesrpc