Inquiry
When trying to build the example with modules vendored (go mod tidy && go mod vendor) i get an error along the lines of
glide_ffi: No such file or directory
The same code works after removing the vendored directory. This behavior seems like it might be by design of go module system(?)
General advice would be appreciated here
Language
go
Language Version
25.1
Engine Version
No response
Operating System
MacOS, Linux
Additional Technical Information
last few lines in the output of go build -x main.go (main.go from https://github.com/valkey-io/valkey-glide/tree/main/go#standalone-example)
mkdir -p $WORK/b001/exe/
cd .
GOROOT='/usr/local/go' /usr/local/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -buildmode=exe -buildid=xW-AqCU91aP0l23ds1ii/DuYaiW1S3f4ZjC2p47rj/whA61L2R5UxIkDqRApy3/xW-AqCU91aP0l23ds1ii -extld=gcc $WORK/b001/_pkg_.a
# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/gcc -m64 -Wl,--build-id=0xab0ddc099935c18c8a25a0fdaba97c01c2b38ce7 -o $WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dynamic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=crosscall2 -Wl,--export-dynamic-symbol=failureCallback -Wl,--export-dynamic-symbol=pubSubCallback -Wl,--export-dynamic-symbol=successCallback -Wl,--compress-debug-sections=zlib /tmp/go-link-1263405046/go.o /tmp/go-link-1263405046/000000.o /tmp/go-link-1263405046/000001.o /tmp/go-link-1263405046/000002.o /tmp/go-link-1263405046/000003.o /tmp/go-link-1263405046/000004.o /tmp/go-link-1263405046/000005.o /tmp/go-link-1263405046/000006.o /tmp/go-link-1263405046/000007.o /tmp/go-link-1263405046/000008.o /tmp/go-link-1263405046/000009.o /tmp/go-link-1263405046/000010.o /tmp/go-link-1263405046/000011.o /tmp/go-link-1263405046/000012.o /tmp/go-link-1263405046/000013.o /tmp/go-link-1263405046/000014.o /tmp/go-link-1263405046/000015.o /tmp/go-link-1263405046/000016.o /tmp/go-link-1263405046/000017.o /tmp/go-link-1263405046/000018.o /tmp/go-link-1263405046/000019.o /tmp/go-link-1263405046/000020.o /tmp/go-link-1263405046/000021.o /tmp/go-link-1263405046/000022.o /tmp/go-link-1263405046/000023.o /tmp/go-link-1263405046/000024.o /tmp/go-link-1263405046/000025.o /tmp/go-link-1263405046/000026.o /tmp/go-link-1263405046/000027.o /tmp/go-link-1263405046/000028.o /tmp/go-link-1263405046/000029.o /tmp/go-link-1263405046/000030.o /tmp/go-link-1263405046/000031.o -O2 -g -lglide_ffi -lm -L/home/ec2-user/example/vendor/github.com/valkey-io/valkey-glide/go/v2/rustbin/x86_64-unknown-linux-gnu -O2 -g -O2 -g -lpthread -O2 -g -O2 -g -O2 -g -no-pie
/usr/bin/ld: cannot find -lglide_ffi: No such file or directory
collect2: error: ld returned 1 exit status
Inquiry
When trying to build the example with modules vendored (
go mod tidy && go mod vendor) i get an error along the lines ofglide_ffi: No such file or directoryThe same code works after removing the vendored directory. This behavior seems like it might be by design of go module system(?)
General advice would be appreciated here
Language
go
Language Version
25.1
Engine Version
No response
Operating System
MacOS, Linux
Additional Technical Information
last few lines in the output of
go build -x main.go(main.go from https://github.com/valkey-io/valkey-glide/tree/main/go#standalone-example)