# Here, there's no issue, everything works as expected
rm -rf vendor/
go run .
# However if vendored, it doesn't
go mod vendor
go run .
# github.com/pion/mediadevices/pkg/codec/opus
./vendor/github.com/pion/mediadevices/pkg/codec/opus/opus.go:15:10: fatal error: 'opus.h' file not found
#include <opus.h>
^~~~~~~~
1 error generated.
# github.com/pion/mediadevices/pkg/avfoundation
./vendor/github.com/pion/mediadevices/pkg/avfoundation/avfoundation_darwin.go:6:11: fatal error: 'AVFoundationBind/AVFoundationBind.h' file not found
#include "AVFoundationBind/AVFoundationBind.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Here is the code I'm using – inspired by the webrtc example.
Your environment.
What did you do?
Here is the code I'm using – inspired by the
webrtc
example.What did you expect?
The code should be able to run after a
go mod vendor