The reason why mattermost plugins do not run on different OS and architectures is because the go-lang compilation version is not defined.
You just need to add the compiled executable files from go-lang to the existing release files.
- After extracting the tar.gz file downloaded from the release, place the compiled executable in the server/dist subdirectory.
git clone https://github.com/mattermost-community/mattermost-plugin-bitbucket.git
cd server && env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -o dist/plugin-linux-arm64;