Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package go-mod-upgrade for openSUSE:Factory checked in at 2024-04-09 16:47:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go-mod-upgrade (Old) and /work/SRC/openSUSE:Factory/.go-mod-upgrade.new.29460 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go-mod-upgrade" Tue Apr 9 16:47:29 2024 rev:2 rq:1166249 version:0.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/go-mod-upgrade/go-mod-upgrade.changes 2023-09-14 16:27:29.634500853 +0200 +++ /work/SRC/openSUSE:Factory/.go-mod-upgrade.new.29460/go-mod-upgrade.changes 2024-04-09 16:52:28.423681036 +0200 @@ -1,0 +2,11 @@ +Mon Apr 08 13:56:12 UTC 2024 - [email protected] + +- Update to version 0.10.0: + * Fix github action: go version should be at least 1.18 + * Fix golangci-lint + * Fix goreleaser config + * Update golang.org/x/mod + * Corrects Go wiki link in README (#45) + * Add ignore flag (closes #42) + +------------------------------------------------------------------- Old: ---- go-mod-upgrade-0.9.1.obscpio New: ---- go-mod-upgrade-0.10.0.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ go-mod-upgrade.spec ++++++ --- /var/tmp/diff_new_pack.HKTEuF/_old 2024-04-09 16:52:28.843696530 +0200 +++ /var/tmp/diff_new_pack.HKTEuF/_new 2024-04-09 16:52:28.847696677 +0200 @@ -1,7 +1,7 @@ # # spec file for package go-mod-upgrade # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: go-mod-upgrade -Version: 0.9.1 +Version: 0.10.0 Release: 0 Summary: Update outdated Go dependencies interactively License: MIT @@ -25,8 +25,8 @@ URL: https://github.com/oligot/go-mod-upgrade Source: go-mod-upgrade-%{version}.tar.xz Source1: vendor.tar.gz -BuildRequires: golang(API) >= 1.20 BuildRequires: golang-packaging +BuildRequires: golang(API) >= 1.20 %{go_nostrip} %description ++++++ _service ++++++ --- /var/tmp/diff_new_pack.HKTEuF/_old 2024-04-09 16:52:28.871697563 +0200 +++ /var/tmp/diff_new_pack.HKTEuF/_new 2024-04-09 16:52:28.875697711 +0200 @@ -4,7 +4,7 @@ <param name="url">https://github.com/oligot/go-mod-upgrade.git</param> <param name="scm">git</param> <param name="revision">main</param> - <param name="version">v0.9.1</param> + <param name="version">v0.10.0</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="versionrewrite-replacement">\1</param> ++++++ go-mod-upgrade-0.9.1.obscpio -> go-mod-upgrade-0.10.0.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/.github/workflows/go.yaml new/go-mod-upgrade-0.10.0/.github/workflows/go.yaml --- old/go-mod-upgrade-0.9.1/.github/workflows/go.yaml 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/.github/workflows/go.yaml 2024-04-08 11:11:42.000000000 +0200 @@ -31,7 +31,7 @@ - uses: actions/checkout@v2 - uses: golangci/golangci-lint-action@v2 with: - version: v1.47 + version: v1.57 goreleaser: name: Release runs-on: ubuntu-20.04 @@ -46,7 +46,7 @@ name: Set up Go uses: actions/setup-go@v2 with: - go-version: "~1.17" + go-version: "~1.18" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/.goreleaser.yml new/go-mod-upgrade-0.10.0/.goreleaser.yml --- old/go-mod-upgrade-0.9.1/.goreleaser.yml 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/.goreleaser.yml 2024-04-08 11:11:42.000000000 +0200 @@ -1,20 +1,16 @@ +--- before: hooks: - go mod tidy builds: -- env: - - CGO_ENABLED=0 - goos: - - darwin - - linux - - windows + - env: + - CGO_ENABLED=0 + goos: + - darwin + - linux + - windows archives: -- replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' checksum: name_template: 'checksums.txt' snapshot: @@ -23,5 +19,5 @@ sort: asc filters: exclude: - - '^docs:' - - '^test:' + - '^docs:' + - '^test:' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/Makefile new/go-mod-upgrade-0.10.0/Makefile --- old/go-mod-upgrade-0.9.1/Makefile 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/Makefile 2024-04-08 11:11:42.000000000 +0200 @@ -2,7 +2,7 @@ goreleaser = ./bin/goreleaser $(golangci-lint): - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.47.3 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.57.2 $(goreleaser): curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh @@ -16,5 +16,5 @@ # Release a new version release: $(goreleaser) - $(goreleaser) --rm-dist + $(goreleaser) --clean .PHONY: release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/go.mod new/go-mod-upgrade-0.10.0/go.mod --- old/go-mod-upgrade-0.9.1/go.mod 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/go.mod 2024-04-08 11:11:42.000000000 +0200 @@ -1,6 +1,6 @@ module github.com/oligot/go-mod-upgrade -go 1.15 +go 1.18 require ( github.com/AlecAivazis/survey/v2 v2.3.2 @@ -9,5 +9,19 @@ github.com/briandowns/spinner v1.16.0 github.com/fatih/color v1.13.0 github.com/urfave/cli/v2 v2.3.0 - golang.org/x/mod v0.6.0-dev.0.20211102181907-3a5865c02020 + golang.org/x/mod v0.14.0 +) + +require ( + github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect + github.com/mattn/go-colorable v0.1.9 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect + github.com/pkg/errors v0.8.1 // indirect + github.com/russross/blackfriday/v2 v2.0.1 // indirect + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect + golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + golang.org/x/term v0.0.0-20210503060354-a79de5458b56 // indirect + golang.org/x/text v0.3.3 // indirect ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/go.sum new/go-mod-upgrade-0.10.0/go.sum --- old/go-mod-upgrade-0.9.1/go.sum 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/go.sum 2024-04-08 11:11:42.000000000 +0200 @@ -35,12 +35,10 @@ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.4 h1:5Myjjh3JY/NaAi4IsUbHADytDyl1VE1Y9PXDlL+P/VQ= github.com/kr/pty v1.1.4/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= @@ -85,16 +83,12 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/mod v0.6.0-dev.0.20211102181907-3a5865c02020 h1:HjtpZuJcnSa+yHlL4Y5aypjDvbHkJne5FS8JRmKI2+I= -golang.org/x/mod v0.6.0-dev.0.20211102181907-3a5865c02020/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -102,10 +96,8 @@ golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210503060354-a79de5458b56 h1:b8jxX3zqjpqb2LklXPzKSGJhzyxCOZSz8ncv8Nv+y7w= golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -113,12 +105,7 @@ golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/main.go new/go-mod-upgrade-0.10.0/main.go --- old/go-mod-upgrade-0.9.1/main.go 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/main.go 2024-04-08 11:11:42.000000000 +0200 @@ -119,6 +119,7 @@ force bool pageSize int hook string + ignore cli.StringSlice } func (app *appEnv) run() error { @@ -167,7 +168,7 @@ if err := os.Chdir(dir); err != nil { return err } - modules, err := discover() + modules, err := discover(app.ignore.Value()) if err != nil { return err } @@ -189,7 +190,7 @@ return nil } -func discover() ([]Module, error) { +func discover(ignoreNames []string) ([]Module, error) { s := spinner.New(spinner.CharSets[14], 100*time.Millisecond) if err := s.Color("yellow"); err != nil { return nil, err @@ -237,6 +238,9 @@ "from": from, "to": to, }).Debug("Found module") + if shouldIgnore(name, from, to, ignoreNames) { + continue + } fromversion, err := semver.NewVersion(from) if err != nil { return nil, err @@ -256,6 +260,21 @@ return modules, nil } +func shouldIgnore(name, from, to string, ignoreNames []string) bool { + for _, ig := range ignoreNames { + if strings.Contains(name, ig) { + c := color.New(color.FgYellow).SprintFunc() + log.WithFields(log.Fields{ + "name": name, + "from": from, + "to": to, + }).Debug(c("Ignore module")) + return true + } + } + return false +} + func choose(modules []Module, pageSize int) []Module { maxName := 0 maxFrom := 0 @@ -385,6 +404,12 @@ Usage: "Hook to execute for each updated module", Destination: &app.hook, }, + &cli.StringSliceFlag{ + Name: "ignore", + Aliases: []string{"i"}, + Usage: "Ignore modules matching the given regular expression", + Destination: &app.ignore, + }, }, Action: func(c *cli.Context) error { return app.run() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/go-mod-upgrade-0.9.1/readme.md new/go-mod-upgrade-0.10.0/readme.md --- old/go-mod-upgrade-0.9.1/readme.md 2023-08-23 09:03:17.000000000 +0200 +++ new/go-mod-upgrade-0.10.0/readme.md 2024-04-08 11:11:42.000000000 +0200 @@ -12,7 +12,7 @@ ## Why -The Go wiki has a great section on [How to Upgrade and Downgrade Dependencies](https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies). +The Go wiki has a great section on [How to Upgrade and Downgrade Dependencies](https://go.dev/wiki/Modules#how-to-upgrade-and-downgrade-dependencies). One can run the command ```bash go list -u -f '{{if (and (not (or .Main .Indirect)) .Update)}}{{.Path}}: {{.Version}} -> {{.Update.Version}}{{end}}' -m all 2> /dev/null @@ -53,6 +53,7 @@ --force, -f Force update all modules in non-interactive mode (default: false) --verbose, -v Verbose mode (default: false) --hook value Hook to execute for each updated module + --ignore value, -i value Ignore modules matching the given regular expression --help, -h show help (default: false) --version print the version (default: false) ``` ++++++ go-mod-upgrade.obsinfo ++++++ --- /var/tmp/diff_new_pack.HKTEuF/_old 2024-04-09 16:52:28.951700515 +0200 +++ /var/tmp/diff_new_pack.HKTEuF/_new 2024-04-09 16:52:28.955700662 +0200 @@ -1,5 +1,5 @@ name: go-mod-upgrade -version: 0.9.1 -mtime: 1692774197 -commit: 053de34037c13ab505129b28cfe9490693030b20 +version: 0.10.0 +mtime: 1712567502 +commit: b738e47383b91fedcb67494e5b8b28ac5b10e800 ++++++ vendor.tar.gz ++++++ ++++ 1798 lines of diff (skipped)
