Mock Version: 6.5 Mock Version: 6.5 Mock Version: 6.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec'], chrootPath='/var/lib/mock/f45-build-48407-874/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4552ec5152734c8db7dd865beb2494c4', '-D', '/var/lib/mock/f45-build-48407-874/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1755216000 Wrote: /builddir/build/SRPMS/golang-github-grpc-ecosystem-gateway-1.16.0-19.20230117git26318a5.fc45.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec'], chrootPath='/var/lib/mock/f45-build-48407-874/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c61abf03d4be488aa9846183a098579a', '-D', '/var/lib/mock/f45-build-48407-874/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1755216000 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.ejyCKF Creating(rpmbuild.env): /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build" RPM_OPT_FLAGS="-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes " RPM_ARCH="riscv64" RPM_OS="linux" RPM_BUILD_NCPUS="8" RPM_SPECPARTS_DIR="/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="golang-github-grpc-ecosystem-gateway" RPM_PACKAGE_VERSION="1.16.0" RPM_PACKAGE_RELEASE="19.20230117git26318a5.fc45" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.oJIYfg + umask 022 + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + rm -rf grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/vendor + [[ ! -e /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build' install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin' + export GOPATH=/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem/grpc-gateway ]] ++ dirname /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem/grpc-gateway + install -m 0755 -vd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src' install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com' install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem' + ln -fs /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem/grpc-gateway + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem/grpc-gateway + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yGqjk1 + umask 022 + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + cd grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b + for cmd in protoc-gen-swagger protoc-gen-grpc-gateway ++ echo golang-github-grpc-ecosystem-gateway-1.16.0-19.20230117git26318a5.fc45-1755216000 ++ sha1sum ++ cut -d ' ' -f1 ++ basename protoc-gen-swagger + GOPATH=/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -a -v -ldflags ' -X github.com/grpc-ecosystem/grpc-gateway/version=1.16.0 -X github.com/grpc-ecosystem/grpc-gateway/version.commit=26318a510414ca4d63a664faab34ec717e77d97b -B 0xd109e078cf47d7847ed4a8e8712bdbec08def1f5 -compressdwarf=false -linkmode=external -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\''' -o /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-swagger github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger encoding internal/unsafeheader internal/byteorder internal/coverage/rtcov internal/godebugs internal/goarch internal/goexperiment internal/goos internal/profilerecord math/bits internal/cpu internal/abi internal/runtime/syscall/linux internal/runtime/gc internal/runtime/atomic internal/asan internal/runtime/sys internal/strconv internal/msan internal/runtime/math internal/runtime/pprof/label internal/trace/tracev2 internal/runtime/gc/scan cmp math internal/runtime/exithook internal/bytealg internal/chacha8rand unicode/utf8 sync/atomic unicode log/internal unicode/utf16 google.golang.org/protobuf/internal/flags google.golang.org/protobuf/internal/set internal/runtime/cgroup internal/stringslite github.com/grpc-ecosystem/grpc-gateway/internal/casing internal/nettrace internal/synctest internal/race internal/sync internal/runtime/maps runtime iter sync internal/reflectlite weak maps slices errors sort encoding/json/internal path internal/oserror strconv vendor/golang.org/x/net/dns/dnsmessage io internal/testlog syscall encoding/json/internal/jsonflags strings bytes reflect bufio time internal/syscall/unix internal/syscall/execenv hash encoding/json/internal/jsonopts encoding/json/internal/jsonwire hash/crc32 encoding/base32 encoding/base64 hash/fnv google.golang.org/protobuf/internal/pragma regexp/syntax internal/bisect encoding/json/jsontext internal/singleflight runtime/cgo unique internal/godebug io/fs internal/poll context net/netip internal/filepathlite regexp internal/fmtsort encoding/binary os google.golang.org/protobuf/internal/detrand path/filepath io/ioutil fmt github.com/grpc-ecosystem/grpc-gateway/utilities log encoding/hex google.golang.org/protobuf/internal/errors compress/flate flag google.golang.org/protobuf/encoding/protowire go/token google.golang.org/protobuf/internal/version gopkg.in/yaml.v2 google.golang.org/protobuf/reflect/protoreflect encoding/json/v2 net/url text/template/parse net compress/gzip google.golang.org/protobuf/internal/encoding/messageset google.golang.org/protobuf/internal/strs google.golang.org/protobuf/internal/genid google.golang.org/protobuf/internal/order google.golang.org/protobuf/internal/encoding/text google.golang.org/protobuf/reflect/protoregistry google.golang.org/protobuf/runtime/protoiface google.golang.org/protobuf/internal/encoding/defval google.golang.org/protobuf/internal/descfmt google.golang.org/protobuf/internal/descopts google.golang.org/protobuf/internal/encoding/json text/template google.golang.org/protobuf/proto os/user github.com/golang/glog google.golang.org/protobuf/encoding/prototext google.golang.org/protobuf/internal/filedesc github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule google.golang.org/protobuf/encoding/protojson encoding/json google.golang.org/protobuf/internal/encoding/tag net/textproto github.com/ghodss/yaml google.golang.org/protobuf/internal/impl google.golang.org/protobuf/internal/filetype google.golang.org/protobuf/runtime/protoimpl google.golang.org/genproto/googleapis/api google.golang.org/protobuf/types/known/durationpb google.golang.org/protobuf/types/known/anypb google.golang.org/protobuf/types/descriptorpb google.golang.org/protobuf/types/known/structpb github.com/golang/protobuf/ptypes/struct github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/protoc-gen-go/descriptor google.golang.org/protobuf/types/pluginpb google.golang.org/protobuf/reflect/protodesc google.golang.org/genproto/googleapis/api/annotations github.com/golang/protobuf/protoc-gen-go/plugin github.com/golang/protobuf/proto github.com/grpc-ecosystem/grpc-gateway/codegenerator github.com/golang/protobuf/jsonpb github.com/golang/protobuf/descriptor github.com/grpc-ecosystem/grpc-gateway/internal github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger + for cmd in protoc-gen-swagger protoc-gen-grpc-gateway ++ echo golang-github-grpc-ecosystem-gateway-1.16.0-19.20230117git26318a5.fc45-1755216000 ++ sha1sum ++ cut -d ' ' -f1 ++ basename protoc-gen-grpc-gateway + GOPATH=/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -a -v -ldflags ' -X github.com/grpc-ecosystem/grpc-gateway/version=1.16.0 -X github.com/grpc-ecosystem/grpc-gateway/version.commit=26318a510414ca4d63a664faab34ec717e77d97b -B 0xd109e078cf47d7847ed4a8e8712bdbec08def1f5 -compressdwarf=false -linkmode=external -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\''' -o /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway internal/goarch internal/unsafeheader internal/byteorder internal/coverage/rtcov internal/godebugs internal/cpu internal/goexperiment encoding internal/goos internal/abi internal/profilerecord internal/runtime/atomic internal/runtime/syscall/linux math/bits internal/runtime/gc internal/runtime/sys internal/asan internal/msan internal/runtime/math internal/runtime/pprof/label internal/strconv internal/trace/tracev2 cmp unicode/utf8 math internal/bytealg internal/chacha8rand internal/runtime/exithook internal/runtime/gc/scan sync/atomic internal/stringslite unicode log/internal unicode/utf16 google.golang.org/protobuf/internal/flags google.golang.org/protobuf/internal/set internal/runtime/cgroup github.com/grpc-ecosystem/grpc-gateway/internal/casing internal/synctest internal/race internal/runtime/maps internal/sync runtime iter internal/reflectlite weak sync maps slices errors sort internal/testlog google.golang.org/protobuf/internal/pragma internal/bisect unique io internal/oserror strconv path syscall reflect strings bytes hash encoding/json/internal hash/crc32 encoding/base32 encoding/json/internal/jsonflags encoding/json/internal/jsonopts encoding/base64 hash/fnv internal/godebug net/netip runtime/cgo time internal/syscall/execenv internal/syscall/unix bufio encoding/json/internal/jsonwire regexp/syntax encoding/json/jsontext go/build/constraint regexp internal/fmtsort encoding/binary io/fs internal/poll internal/filepathlite os google.golang.org/protobuf/internal/detrand path/filepath io/ioutil fmt github.com/grpc-ecosystem/grpc-gateway/utilities log flag google.golang.org/protobuf/internal/errors compress/flate encoding/hex go/token google.golang.org/protobuf/internal/version gopkg.in/yaml.v2 google.golang.org/protobuf/encoding/protowire encoding/json/v2 google.golang.org/protobuf/reflect/protoreflect go/scanner go/doc/comment go/ast text/tabwriter net/url google.golang.org/protobuf/internal/encoding/messageset os/user google.golang.org/protobuf/internal/strs google.golang.org/protobuf/internal/genid google.golang.org/protobuf/internal/order google.golang.org/protobuf/internal/encoding/text google.golang.org/protobuf/reflect/protoregistry google.golang.org/protobuf/runtime/protoiface google.golang.org/protobuf/internal/descfmt compress/gzip google.golang.org/protobuf/internal/descopts google.golang.org/protobuf/internal/encoding/json text/template/parse google.golang.org/protobuf/internal/encoding/defval github.com/golang/glog google.golang.org/protobuf/proto github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule go/parser go/printer google.golang.org/protobuf/internal/filedesc google.golang.org/protobuf/encoding/prototext text/template encoding/json github.com/ghodss/yaml go/format google.golang.org/protobuf/internal/encoding/tag google.golang.org/protobuf/encoding/protojson google.golang.org/protobuf/internal/impl google.golang.org/protobuf/internal/filetype google.golang.org/protobuf/runtime/protoimpl google.golang.org/protobuf/types/known/durationpb google.golang.org/protobuf/types/descriptorpb google.golang.org/genproto/googleapis/api google.golang.org/protobuf/types/pluginpb google.golang.org/genproto/googleapis/api/annotations github.com/golang/protobuf/protoc-gen-go/descriptor google.golang.org/protobuf/reflect/protodesc github.com/golang/protobuf/protoc-gen-go/plugin github.com/golang/protobuf/proto github.com/grpc-ecosystem/grpc-gateway/codegenerator github.com/golang/protobuf/jsonpb github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sGJgvW + umask 022 + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + '[' /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + mkdir /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT + cd grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src/github.com/grpc-ecosystem/grpc-gateway + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/grpc-ecosystem/grpc-gateway -b /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin -s /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build -o golang-github-grpc-ecosystem-gateway-devel.file-list -O /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b -V 1.16.0-19.20230117git26318a5.fc45 -C 26318a510414ca4d63a664faab34ec717e77d97b -p /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT -g /usr/share/gocode -r '.*example.*' Installing: github.com/grpc-ecosystem/grpc-gateway + IFS= +++ realpath -e --relative-base=. docs examples CHANGELOG.md CONTRIBUTING.md README.md +++ sort -u ++ listfiles_include=$'CHANGELOG.md\nCONTRIBUTING.md\nREADME.md\ndocs\nexamples' ++ echo $'CHANGELOG.md\nCONTRIBUTING.md\nREADME.md\ndocs\nexamples' + godocs=$'CHANGELOG.md\nCONTRIBUTING.md\nREADME.md\ndocs\nexamples' + [[ -n CHANGELOG.md CONTRIBUTING.md README.md docs examples ]] + IFS= + read -r f + echo %doc '"CHANGELOG.md"' + IFS= + read -r f + echo %doc '"CONTRIBUTING.md"' + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + echo %doc '"docs"' + IFS= + read -r f + echo %doc '"examples"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE.txt +++ sort -u ++ listfiles_include=LICENSE.txt ++ echo LICENSE.txt + golicenses=LICENSE.txt + [[ -n LICENSE.txt ]] + IFS= + read -r f + echo %license '"LICENSE.txt"' + IFS= + read -r f + install -m 0755 -vd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin install: creating directory '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin' + install -m 0755 -vp /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-grpc-gateway /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-swagger /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin/ '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-grpc-gateway' -> '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin/protoc-gen-grpc-gateway' '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin/protoc-gen-swagger' -> '/builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin/protoc-gen-swagger' + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.16.0-19.20230117git26318a5.fc45 --unique-debug-suffix -1.16.0-19.20230117git26318a5.fc45.riscv64 --unique-debug-src-base golang-github-grpc-ecosystem-gateway-1.16.0-19.20230117git26318a5.fc45.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b find-debuginfo: starting Extracting debug info from 2 files warning: Unsupported auto-load script at offset 0 in section .debug_gdb_scripts of file /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin/protoc-gen-grpc-gateway. Use `info auto-load python-scripts [REGEXP]' to list them. warning: Unsupported auto-load script at offset 0 in section .debug_gdb_scripts of file /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr/bin/protoc-gen-swagger. Use `info auto-load python-scripts [REGEXP]' to list them. DWARF-compressing 2 files sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/golang-github-grpc-ecosystem-gateway-1.16.0-19.20230117git26318a5.fc45.riscv64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j8 /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT Scanned 64 directories and 133 files, processed 0 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT/usr Scanned 63 directories and 133 files, considered 133 files, read 52 files, linked 25 files, 0 errors sum of sizes of linked files: 293863 bytes Reading /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.RG2AkA + umask 022 + cd /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build + cd grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b + GO_LDFLAGS=' -X github.com/grpc-ecosystem/grpc-gateway/version=1.16.0 -X github.com/grpc-ecosystem/grpc-gateway/version.commit=26318a510414ca4d63a664faab34ec717e77d97b' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + go-rpm-integration check -i github.com/grpc-ecosystem/grpc-gateway -b /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin -s /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build -V 1.16.0-19.20230117git26318a5.fc45 -C 26318a510414ca4d63a664faab34ec717e77d97b -p /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/BUILDROOT -g /usr/share/gocode -r '.*example.*' -d runtime -d codegenerator Testing in: /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/src PATH: /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin GOPATH: /builddir/build/BUILD/golang-github-grpc-ecosystem-gateway-1.16.0-build/grpc-gateway-26318a510414ca4d63a664faab34ec717e77d97b/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/grpc-ecosystem/grpc-gateway/version=1.16.0 -X github.com/grpc-ecosystem/grpc-gateway/version.commit=26318a510414ca4d63a664faab34ec717e77d97b -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '" testing: github.com/grpc-ecosystem/grpc-gateway github.com/grpc-ecosystem/grpc-gateway/internal ? github.com/grpc-ecosystem/grpc-gateway/internal [no test files] github.com/grpc-ecosystem/grpc-gateway/internal/casing ? github.com/grpc-ecosystem/grpc-gateway/internal/casing [no test files] github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor 0.018s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor 0.016s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator ? github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/generator [no test files] github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule 0.007s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule 0.007s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway E1029 17:50:01.557925 7718 generator.go:114] cannot use module= with paths=: // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. // source: example.proto /* Package example_pb is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ package example_pb import ( ) // Suppress "imported and not used" errors var _ codes.Code var _ io.Reader var _ status.Status var _ reflect.Kind var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join func request_ExampleService_Example_0(ctx context.Context, marshaler runtime.Marshaler, client ExampleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ExampleMessage var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) if berr != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.Example(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } func local_request_ExampleService_Example_0(ctx context.Context, marshaler runtime.Marshaler, server ExampleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ExampleMessage var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) if berr != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.Example(ctx, &protoReq) return msg, metadata, err } // RegisterExampleServiceServer registers the http handlers for service ExampleService to "mux". // UnaryRPC :call ExampleServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExampleServiceFromEndpoint instead. func RegisterExampleServiceServer(ctx context.Context, mux *runtime.ServeMux, server ExampleServiceServer) error { mux.Handle("GET", pattern_ExampleService_Example_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(ctx) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } resp, md, err := local_request_ExampleService_Example_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } forward_ExampleService_Example_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } // RegisterExampleServiceFromEndpoint is same as RegisterExampleService but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterExampleServiceFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) } }() }() return RegisterExampleService(ctx, mux, conn) } // RegisterExampleService registers the http handlers for service ExampleService to "mux". // The handlers forward requests to the grpc endpoint over "conn". func RegisterExampleService(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { return RegisterExampleServiceClient(ctx, mux, NewExampleServiceClient(conn)) } // RegisterExampleServiceClient registers the http handlers for service ExampleService // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExampleServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExampleServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ExampleServiceClient" to call the correct interceptors. func RegisterExampleServiceClient(ctx context.Context, mux *runtime.ServeMux, client ExampleServiceClient) error { mux.Handle("GET", pattern_ExampleService_Example_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(ctx) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateContext(ctx, mux, req) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } resp, md, err := request_ExampleService_Example_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } forward_ExampleService_Example_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } var ( pattern_ExampleService_Example_0 = runtime.MustPattern(runtime.NewPattern(0, []int(nil), []string(nil), "", runtime.AssumeColonVerbOpt(true))) ) var ( forward_ExampleService_Example_0 = runtime.ForwardResponseMessage ) PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.039s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway E1029 17:50:03.386312 7797 generator.go:114] cannot use module= with paths=: // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. // source: example.proto /* Package example_pb is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ package example_pb import ( ) // Suppress "imported and not used" errors var _ codes.Code var _ io.Reader var _ status.Status var _ reflect.Kind var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join func request_ExampleService_Example_0(ctx context.Context, marshaler runtime.Marshaler, client ExampleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ExampleMessage var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) if berr != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.Example(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } func local_request_ExampleService_Example_0(ctx context.Context, marshaler runtime.Marshaler, server ExampleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ExampleMessage var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) if berr != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.Example(ctx, &protoReq) return msg, metadata, err } // RegisterExampleServiceServer registers the http handlers for service ExampleService to "mux". // UnaryRPC :call ExampleServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExampleServiceFromEndpoint instead. func RegisterExampleServiceServer(ctx context.Context, mux *runtime.ServeMux, server ExampleServiceServer) error { mux.Handle("GET", pattern_ExampleService_Example_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(ctx) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } resp, md, err := local_request_ExampleService_Example_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } forward_ExampleService_Example_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } // RegisterExampleServiceFromEndpoint is same as RegisterExampleService but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterExampleServiceFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) } }() }() return RegisterExampleService(ctx, mux, conn) } // RegisterExampleService registers the http handlers for service ExampleService to "mux". // The handlers forward requests to the grpc endpoint over "conn". func RegisterExampleService(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { return RegisterExampleServiceClient(ctx, mux, NewExampleServiceClient(conn)) } // RegisterExampleServiceClient registers the http handlers for service ExampleService // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExampleServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExampleServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ExampleServiceClient" to call the correct interceptors. func RegisterExampleServiceClient(ctx context.Context, mux *runtime.ServeMux, client ExampleServiceClient) error { mux.Handle("GET", pattern_ExampleService_Example_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(ctx) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateContext(ctx, mux, req) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } resp, md, err := request_ExampleService_Example_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } forward_ExampleService_Example_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } var ( pattern_ExampleService_Example_0 = runtime.MustPattern(runtime.NewPattern(0, []int(nil), []string(nil), "", runtime.AssumeColonVerbOpt(true))) ) var ( forward_ExampleService_Example_0 = runtime.ForwardResponseMessage ) PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/internal/gengateway 0.039s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger PASS ok github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger 0.010s github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger # github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger # [github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger] ./template_test.go:1155:37: (*testing.common).Errorf format %s has arg is of wrong type []github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger.extension ./template_test.go:1165:37: (*testing.common).Errorf format %s has arg is of wrong type []github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger.extension ./template_test.go:1171:37: (*testing.common).Errorf format %s has arg is of wrong type []github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger.extension ./template_test.go:1183:37: (*testing.common).Errorf format %s has arg is of wrong type []github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger.extension ./template_test.go:1188:37: (*testing.common).Errorf format %s has arg is of wrong type []github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger.extension FAIL github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger [build failed] error: Bad exit status from /var/tmp/rpm-tmp.RG2AkA (%check) Bad exit status from /var/tmp/rpm-tmp.RG2AkA (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M c61abf03d4be488aa9846183a098579a -D /var/lib/mock/f45-build-48407-874/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.14/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M c61abf03d4be488aa9846183a098579a -D /var/lib/mock/f45-build-48407-874/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.h830heu6:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-grpc-ecosystem-gateway.spec'