oligot / go-mod-upgrade

Update outdated Go dependencies interactively
MIT License
905 stars 43 forks source link

[v0.3.0] When I update to this version doesn't work like before. #7

Closed conero closed 3 years ago

conero commented 3 years ago

When I update to this version doesn't work like before.

$ go-mod-upgrade.exe

# Discovering modules...
# 2021/02/08 14:18:54 Invalid Semantic Version
oligot commented 3 years ago

Hi,

What's your go version ?

go version

Can you also share your go.mod file ?

conero commented 3 years ago

@oligot Ye, I use the go go1.16rc1.

My go.mod like:

module conero/ys

go 1.13

require (
    fyne.io/fyne v1.4.2
    github.com/ajg/form v1.5.1 // indirect
    github.com/conero/uymas v1.0.0-alpha.4.0.20201128002311-286e09b55962
    github.com/dchest/captcha v0.0.0-20200903113550-03f5f0333e1f
    github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
    github.com/go-playground/validator/v10 v10.4.1
    github.com/go-sql-driver/mysql v1.5.0
    github.com/gobuffalo/packr/v2 v2.8.0
    github.com/golang/snappy v0.0.1 // indirect
    github.com/google/go-querystring v1.0.0 // indirect
    github.com/google/uuid v1.2.0
    github.com/imkira/go-interpol v1.1.0 // indirect
    github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
    github.com/kataras/golog v0.1.6
    github.com/kataras/iris/v12 v12.1.8
    github.com/kataras/neffos v0.0.18
    github.com/mattn/go-colorable v0.1.8 // indirect
    github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
    github.com/modern-go/reflect2 v1.0.1 // indirect
    github.com/moul/http2curl v1.0.0 // indirect
    github.com/nats-io/nats-server/v2 v2.1.9 // indirect
    github.com/pelletier/go-toml v1.8.1
    github.com/sergi/go-diff v1.1.0 // indirect
    github.com/sirupsen/logrus v1.7.0 // indirect
    github.com/smartystreets/goconvey v1.6.4 // indirect
    github.com/valyala/fasthttp v1.17.0 // indirect
    github.com/xeipuuv/gojsonschema v1.2.0 // indirect
    github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
    github.com/yudai/gojsondiff v1.0.0 // indirect
    github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
    github.com/yudai/pp v2.0.1+incompatible // indirect
    golang.org/x/sys v0.0.0-20201126233918-771906719818 // indirect
    golang.org/x/text v0.3.4 // indirect
    google.golang.org/protobuf v1.25.0 // indirect
    gopkg.in/ini.v1 v1.62.0 // indirect
    gopkg.in/yaml.v2 v2.4.0 // indirect
    gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
    xorm.io/builder v0.3.7
    xorm.io/xorm v1.0.7
)
oligot commented 3 years ago

Ok, the current version of go-mod-upgrade (0.3.0) doesn't support rc version (like go1.16rc1). I've just pushed a new version 0.4.0 that support those versions.

Can you install this new version and test that it works ?

conero commented 3 years ago

@oligot Thanks. Now I use v0.4.0 in go1.16, and it's works.