rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.24k stars 280 forks source link

Go install fails on Go 1.19 #249

Closed aminemat closed 1 year ago

aminemat commented 1 year ago

Go install fails on Go 1.19

go install github.com/rubenv/sql-migrate/...@latest
go: github.com/rubenv/sql-migrate/...@latest (in github.com/rubenv/sql-migrate@v1.5.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.
rubenv commented 1 year ago

Time to drop Go 1.16 support then.

On Fri, Jun 23, 2023, 19:00 Amine Matmati @.***> wrote:

Go install fails on Go 1.19

go install @. go: @. (in @.***): 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.

— Reply to this email directly, view it on GitHub https://github.com/rubenv/sql-migrate/issues/249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKPGELLY7RF5JZR37H5VTXMXDR7ANCNFSM6AAAAAAZRZ33KI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rubenv commented 1 year ago

Could you try again?

I've just release v1.5.1

aminemat commented 1 year ago

your responsiveness blew my mind, thank you! @latest still points to 1.5.0 I tried go install github.com/rubenv/sql-migrate@1.5.1 but I'm getting invalid version: unknown revision 1.5.1

I'm guessing module proxy propagation?

aminemat commented 1 year ago

It works now, thank you so much @rubenv!

rubenv commented 1 year ago

Excellent, have a nice weekend!

Thanks for reporting this.