Summary
While writing a plugin, I have troubles compiling it.
Steps to reproduce
Make github.com/mattermost/mattermost-server/v6/model
import in .go file
then go build
it
Expected behavior
Plugin should compile
Observed behavior (that appears unintentional)
Build fails with:
../../pkg/mod/github.com/mattermost/mattermost-server/v6@v6.7.2/model/link_metadata.go:53:39: undefined: opengraph.Image
I can see that repo’s model/link_metadata.go has "github.com/dyatlov/go-opengraph/opengraph/types/image"
import, but what I get in my ~\go\pkg has no such line. This is true for 6.7.2, 6.3.0, 6.2.1. And this is strangely enough, as my previous plugin compiled successfully with 6.3.0
Possible fixes
Maybe you need to update go.mod with github.com/dyatlov/go-opengraph v1.0.1
and skip that exclude
hack ?