OSError: Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/server/src/function/runtime-env/lib/python3.12/site-packages/hrequests/bin/hrequests-cgo-3.1-linux-amd64.so)
Getting this error when attempting to execute my function. I tried including apk add gcompat
or apk add libc6-compat
to the build setting but no dice.
TL;DR
Issue: Error message stating "Error loading shared library libresolv.so.2: No such file or directory" when trying to run a function.
Solution: Instead of `apk add gcompat` or `apk add libc6-compat`, try including `apk add musl-dev` in the build settings.