Problem reverting to previous nakama runtime

We are developing for nakama 2.9 and have go 1.13.5 installed. During the process of compiling our go module, we accidently did a get on the v1.4.0 nakama runtime. We have since deleted it, but now nakama is rejecting our module due to this error:
plugin was built with a different version of package golang.org/x/crypto/pbkdf2
I’ve reinstalled go, but am getting the same message.

I deleted all the go packages downloaded in my local go path, reinstalled go, and tried to re build our module with a clean install of go 1.13.5, and using the nakama runtime v1.3.0. This is the packages that were downloaded when I did that:
jxx@Jons-Mac go_source % go build -buildmode=plugin -trimpath -o ./module.so
go: downloading github.com/golang/protobuf v1.3.2
go: finding github.com/jackc/pgx v3.6.2+incompatible
go: finding github.com/jackc/pgx/v4 v4.6.0
go: finding github.com/disintegration/imaging v1.6.2
go: extracting github.com/golang/protobuf v1.3.2
go: downloading github.com/jackc/pgx/v4 v4.6.0
go: downloading github.com/jackc/pgx v3.6.2+incompatible
go: downloading github.com/disintegration/imaging v1.6.2
go: extracting github.com/jackc/pgx v3.6.2+incompatible
go: extracting github.com/disintegration/imaging v1.6.2
go: extracting github.com/jackc/pgx/v4 v4.6.0
go: downloading github.com/jackc/pgtype v1.3.0
go: downloading github.com/jackc/pgconn v1.5.0
go: downloading golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
go: downloading github.com/jackc/pgio v1.0.0
go: downloading github.com/jackc/pgproto3 v1.1.0
go: downloading golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: extracting github.com/jackc/pgio v1.0.0
go: extracting github.com/jackc/pgtype v1.3.0
go: extracting golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: extracting github.com/jackc/pgproto3 v1.1.0
go: downloading github.com/jackc/pgproto3/v2 v2.0.1
go: extracting github.com/jackc/pgconn v1.5.0
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20200307190119-3430c5407db8
go: downloading github.com/jackc/chunkreader v1.0.0
go: downloading golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
go: downloading golang.org/x/text v0.3.2
go: extracting github.com/jackc/pgproto3/v2 v2.0.1
go: extracting github.com/jackc/pgpassfile v1.0.0
go: extracting github.com/jackc/chunkreader v1.0.0
go: extracting github.com/jackc/pgservicefile v0.0.0-20200307190119-3430c5407db8
go: downloading github.com/jackc/chunkreader/v2 v2.0.1
go: extracting github.com/jackc/chunkreader/v2 v2.0.1
go: extracting golang.org/x/text v0.3.2
go: extracting golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
go: extracting golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
go: finding golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/jackc/pgconn v1.5.0
go: finding github.com/jackc/pgio v1.0.0
go: finding github.com/jackc/pgproto3/v2 v2.0.1
go: finding github.com/jackc/chunkreader/v2 v2.0.1
go: finding github.com/jackc/pgpassfile v1.0.0
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding github.com/jackc/pgtype v1.3.0
go: finding github.com/jackc/pgservicefile v0.0.0-20200307190119-3430c5407db8
go: finding golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
go: finding golang.org/x/text v0.3.2

The module builds fine but nakama 2.9.0 is still rejecting it due to the crypto/pbkdf2 version.

@oscargoldman You will need to run at least these two commands from the Go toolchain:

env GO111MODULE=on go clean -modcache
env GO111MODULE=on go mod tidy

If this does not resolve the issue you’ll need to share your modfile to understand what dependencies you have which could have transitively changed when you updated to the latest nakama-common Go package.