My server plugin is not compiling


While writing a plugin, I have troubles compiling it.

Steps to reproduce

Make import in .go file
then go build it

Expected behavior

Plugin should compile

Observed behavior (that appears unintentional)

Build fails with:
../../pkg/mod/ undefined: opengraph.Image

I can see that repo’s model/link_metadata.go has "" 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 v1.0.1 and skip that exclude hack ?