Git Product home page Git Product logo

depu's Introduction

depu

Go Go Report Card Release License: MIT

Why to write depu

When I maintain go-zero, I often need to check if any updates on my dependencies.

Some advantages on keeping up-to-date:

  • get more features
  • known bugs or security issues get fixed
  • not breaking for deprecated usages on must upgrade

And go list lists all the dependent packages for both direct and indirect usages, and Indirect fields always telling true. For details, check this issue: golang/go#40364

Design ideas

  • use go list -u -m -json all to get all the available updates for both direct and indirect usages.
  • parse local go.mod to get directly required packages.
  • only display the availabe updates for directly required packages.

Installation

$ go install github.com/kevwan/depu@latest

How to use

In the directory of go.mod, run the following command:

$ depu

Results look like below if there are available updates:

image

Results looks like below if no updates:

image

Give a Star! ⭐

If you like or are using this project, please give it a star. Thanks!

depu's People

Contributors

abeautifulsnow avatar dependabot[bot] avatar kevwan avatar zcong1993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

depu's Issues

Does not support projects with vendor directory

Was about to test this tool since I have the same use case, really looking forward to it!

Sadly I ran into this error when running it:

$ depu
go: can't determine available upgrades using the vendor directory
	(Use -mod=mod or -mod=readonly to bypass.)
parseModules: exit status 1

My project contains a vendor folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.