Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radeksimko/go-mod-stat
To identify go-mod unaware dependencies
https://github.com/radeksimko/go-mod-stat
dependencies go go-modules golang
Last synced: 12 days ago
JSON representation
To identify go-mod unaware dependencies
- Host: GitHub
- URL: https://github.com/radeksimko/go-mod-stat
- Owner: radeksimko
- Created: 2019-02-13T21:17:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T12:42:42.000Z (over 4 years ago)
- Last Synced: 2023-03-11T13:50:00.259Z (over 1 year ago)
- Topics: dependencies, go, go-modules, golang
- Language: Go
- Homepage:
- Size: 86.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-mod-stat
To list which dependencies are not go-mod-aware and _may_ cause version conflicts during upgrades.
## Caveats
Go tooling refuses to download module versions which are normally not downloadable/discoverable via `go get -u` (semver-based update).
This means that module's `master` may already have `go.mod`, but is not discoverable/updatable yet as it's awaiting a new release.## Installation
```sh
# Go 1.12+
go install github.com/radeksimko/go-mod-stat# Go 1.11
GO111MODULE=off go install github.com/radeksimko/go-mod-stat
```## Usage
```
$ go-mod-stat --help
Usage of go-mod-stat:
-modfile string
Path to go.mod (default "$PWD/go.mod")
```## Example output
```
github.com/go-test/deep @ v1.0.1 is module-unaware
github.com/golang/mock @ v1.2.0 is module-unaware
github.com/golang/protobuf @ v1.2.0 is module-unaware
github.com/google/go-cmp @ v0.2.0 is module-unaware
github.com/gophercloud/gophercloud @ v0.0.0-20190208042652-bc37892e1968 is module-unaware (updatable to v0.0.0-20190213202128-b18d22ae2c8b)
github.com/hashicorp/consul @ v0.0.0-20171026175957-610f3c86a089 is module-unaware
github.com/hashicorp/go-checkpoint @ v0.0.0-20171009173528-1545e56e46de is module-unaware (updatable to v0.5.0)
github.com/hashicorp/go-getter @ v0.0.0-20180327010114-90bb99a48d86 is module-unaware (updatable to v1.0.3)
github.com/hashicorp/go-rootcerts @ v0.0.0-20160503143440-6bb64b370b90 is module-unaware (updatable to v1.0.0)
github.com/hashicorp/hcl @ v0.0.0-20170504190234-a4b07c25de5f is module-unaware (updatable to v1.0.0)
```