I have followed the steps here to install libmongocrypt and added the cse tag to my go build.
brew info libmongocrypt
==> mongodb/brew/libmongocrypt: stable 1.8.2, HEAD
C library for Client Side Encryption
https://github.com/mongodb/libmongocrypt
/opt/homebrew/Cellar/libmongocrypt/1.8.2 (44 files, 9.4MB) *
Built from source on 2023-11-07 at 11:28:05
From: https://github.com/mongodb/homebrew-brew/blob/HEAD/Formula/libmongocrypt.rb
License: Apache-2.0
==> Dependencies
Build: cmake ✔, mongo-c-driver ✔
==> Options
--HEAD
Install HEAD version
Build results:
go build -ldflags "-X 'main.version=f0205c2409aa47ce7ac836784f364468af074380'" -tags cse -o /path/to/go/project/bin/apiserver cmd/apiserver/apiserver.go
# command-line-arguments
/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: warning: search path '/opt/homebrew/Cellar/libmongocrypt/1.8.1/lib' not found
ld: library 'mongocrypt' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This was working for me before but I believe i installed libmongocrypt before the release on Sept 5. I was helping a team member get set up so I uninstalled to walk through the installation with them and now it’s failing for both of us.