Coder Social home page Coder Social logo

dep_radar's Introduction

Travis Code Climate Code Climate Go Report Card

Dep radar

dep radar is a prototype to control Go dependencies in microservice world. dep radar requires Go 1.10 or newer to compile.

You can try demo: https://dep-radar.zagirov.name

Screenshots

Frontend

How it works

You can't just run some binary. You have to write a bit of code. Your code must implement:

  • Get a list of packages of applications what dependencies you want to monitor
  • Init provider detector. It can be a default with support only github, but you can add you own provider
  • A http handler with calling method for generate html table with all apps and dependencies

Simple example that shows a table with dependencies for entered github organization:

docker run -p 8081:8081 stamm/dep_radar:3.1.2

To put your token for github use this command:

docker run -e "GITHUB_TOKEN=t0ken" -p 8081:8081 stamm/dep_radar:3.1.2

Or with showing state of dependencies:

  • Recommended: restriction for version, for example >=0.13
  • Mandatory: lib must be in an app
  • Exclude: lib must be absent in an app
  • NeedVersion: you must use version, not hash
cat <<EOT > /tmp/recommended.json
{
	"github.com/pkg/errors": {
		"Recommended": ">=0.8.0",
		"Mandatory":  true
	},
	"github.com/kr/fs": {
		"Exclude": true
	},
	"github.com/pkg/profile": {
		"NeedVersion": true
	}
}
EOT

docker run -v /tmp:/cfg -p 8081:8081 stamm/dep_radar:2.0.0 -recommended_file="/cfg/recommended.json" -github_org="dep-radar"

You can find more in examples.

Supported code storage

  • Github
  • Private Bitbucket

Supported dep tools

dep_radar's People

Contributors

and07 avatar biohedge avatar dewey avatar stamm 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

Watchers

 avatar  avatar  avatar  avatar  avatar

dep_radar's Issues

DATA RACE

==================
WARNING: DATA RACE
Read at 0x00c0011cc140 by goroutine 1509:
  github.com/stamm/dep_radar/deps.(*Detector).Deps.func1()
     /pkg/mod/github.com/stamm/[email protected]/deps/detect.go:50 +0x11b

goroutines leak

after a long service, a large number of repositories will leak of goroutines

github.com/stamm/dep_radar/deps.(*Detector).Deps.func1(0xc0004654a0, 0xc00046a0f0, 0x10b8680, 0xc0003c00a0, 0xc000292d20, 0xc000465680, 0xc0000b7240, 0x10ad480, 0x18ca528)
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:47 +0x1e3
created by github.com/stamm/dep_radar/deps.(*Detector).Deps
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:43 +0x29a

goroutine 1366 [chan send, 10020 minutes]:
github.com/stamm/dep_radar/deps.(*Detector).Deps.func2(0xc0007f43f0, 0xc0006328a0)
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:59 +0x43
created by github.com/stamm/dep_radar/deps.(*Detector).Deps
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:57 +0x2e2

goroutine 143 [chan send, 10020 minutes]:
github.com/stamm/dep_radar/deps.(*Detector).Deps.func2(0xc000662c20, 0xc00020ed20)
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:59 +0x43
created by github.com/stamm/dep_radar/deps.(*Detector).Deps
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:57 +0x2e2

goroutine 708 [chan send, 10020 minutes]:
github.com/stamm/dep_radar/deps.(*Detector).Deps.func2(0xc0007f4cc0, 0xc0007edb60)
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:59 +0x43
created by github.com/stamm/dep_radar/deps.(*Detector).Deps
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:57 +0x2e2

goroutine 661 [chan send, 10020 minutes]:
github.com/stamm/dep_radar/deps.(*Detector).Deps.func2(0xc0008ba280, 0xc00096f980)
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:59 +0x43
created by github.com/stamm/dep_radar/deps.(*Detector).Deps
	/builds/platform/cherkizon-dep-radar/.cache/go/pkg/mod/github.com/stamm/[email protected]/deps/detect.go:57 +0x2e2

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.