scylladb / gocqlx

All-In-One: CQL query builder, ORM and migration tool
Apache License 2.0
927 stars 122 forks source link

go install complains about replace directive in go.mod #295

Closed zs-ko closed 2 weeks ago

zs-ko commented 2 weeks ago

in go.mod after v3 the replace directive causes the install to error out

go install github.com/scylladb/gocqlx/v3/cmd/schemagen@v3.0.0
go: downloading github.com/scylladb/gocqlx/v3 v3.0.0
go: github.com/scylladb/gocqlx/v3/cmd/schemagen@v3.0.0 (in github.com/scylladb/gocqlx/v3@v3.0.0):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.
sylwiaszunejko commented 2 weeks ago

Please see https://github.com/scylladb/gocqlx/issues/287