https://github.com/johejo/gomodcheck
go.mod checker
https://github.com/johejo/gomodcheck
go golang gomod gomodule module
Last synced: 8 days ago
JSON representation
go.mod checker
- Host: GitHub
- URL: https://github.com/johejo/gomodcheck
- Owner: johejo
- License: mit
- Created: 2020-06-14T13:40:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T02:35:54.000Z (over 3 years ago)
- Last Synced: 2024-12-29T19:59:18.629Z (about 1 year ago)
- Topics: go, golang, gomod, gomodule, module
- Language: Go
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gomodcheck
[](https://github.com/johejo/gomodcheck/actions?query=workflow%3Aci)
[](https://codecov.io/gh/johejo/gomodcheck)
[](https://goreportcard.com/report/github.com/johejo/gomodcheck)
## Description
gomodcheck is a tool that reads go.mod and checks if a module needs updating.
## Install
```
go get github.com/johejo/gomodcheck
```
## Example
```
$ cat go.mod
module github.com/johejo/gomodcheck
go 1.14
require (
github.com/PuerkitoBio/goquery v1.5.0
github.com/google/go-github/v32 v32.0.0
github.com/hashicorp/go-version v1.2.0
golang.org/x/mod v0.3.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
)
```
```
$ gomodcheck
2020/06/14 22:24:28 github.com/PuerkitoBio/goquery is behind, latest=v1.5.1
2020/06/14 22:24:28 github.com/hashicorp/go-version v1.2.0 is latest
2020/06/14 22:24:28 github.com/google/go-github/v32 v32.0.0 is latest
2020/06/14 22:24:28 golang.org/x/mod v0.3.0 is latest
2020/06/14 22:24:28 golang/oauth2 has no tags
```
## Warning
gomodcheck uses GitHub API, so be careful of rate limit.
If you set the environment variable `GITHUB_TOKEN`, gomodcheck will use it.