upper / db

Data Access Layer (DAL) for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
https://upper.io/
MIT License
3.54k stars 235 forks source link

loading module retractions #700

Open daniel-cohere opened 1 year ago

daniel-cohere commented 1 year ago

Hi in Goland when fetching dependencies it runs:

go list -json -m -u -mod=readonly all

and for me, is erroring out via:

go: loading module retractions for upper.io/db.v3@v3.8.0+incompatible: reading upper.io/db.v3/go.mod at revision v1.0.2: unknown revision v1.0.2

I'm fairly new to Golang but my understanding is that incompatible versions do not have a go.mod which is where retractions are listed (can they be listed somewhere else)? I'm curious if this is an issue with the module index? How is go finding retractions? I noticed that the highest v1 tag is v1.0.1 in the repository but I have no clue where v1.0.2 is coming from.

xiam commented 1 year ago

@daniel-cohere can you try using v4 import path?

"github.com/upper/db/v4"