Skip to content

Commit

Permalink
Migrated repository to github.com/goark/depm
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegel-im-spiegel committed Mar 13, 2022
1 parent a845220 commit 9243473
Show file tree
Hide file tree
Showing 33 changed files with 120 additions and 646 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vulns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: install depm
run: |
pushd $RUNNER_TEMP
curl -Lfs -o depm.tar.gz https://github.com/spiegel-im-spiegel/depm/releases/download/v0.4.4/depm_0.4.4_Linux_64bit.tar.gz
curl -Lfs -o depm.tar.gz https://github.com/goark/depm/releases/download/v0.4.5/depm_0.4.5_Linux_64bit.tar.gz
sudo tar -xzf depm.tar.gz
sudo mv depm /usr/local/bin/depm
popd
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_name: depm
release:
github:
owner: spiegel-im-spiegel
owner: goark
name: depm

builds:
Expand All @@ -20,7 +20,7 @@ builds:
main: ./
flags:
- -trimpath
ldflags: -s -w -X github.com/spiegel-im-spiegel/depm/facade.Version=v{{ .Version }}
ldflags: -s -w -X github.com/goark/depm/facade.Version=v{{ .Version }}
binary: depm

archives:
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# [depm] -- Visualize depndency packages and modules

[![check vulns](https://github.com/spiegel-im-spiegel/depm/workflows/vulns/badge.svg)](https://github.com/spiegel-im-spiegel/depm/actions)
[![lint status](https://github.com/spiegel-im-spiegel/depm/workflows/lint/badge.svg)](https://github.com/spiegel-im-spiegel/depm/actions)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/spiegel-im-spiegel/depm/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/spiegel-im-spiegel/depm.svg)](https://github.com/spiegel-im-spiegel/depm/releases/latest)
[![check vulns](https://github.com/goark/depm/workflows/vulns/badge.svg)](https://github.com/goark/depm/actions)
[![lint status](https://github.com/goark/depm/workflows/lint/badge.svg)](https://github.com/goark/depm/actions)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/goark/depm/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/goark/depm.svg)](https://github.com/goark/depm/releases/latest)

This package is required Go 1.16 or later.

**Migrated repository to [github.com/goark/depm][depm]**

## Download and Build

```
$ go install github.com/spiegel-im-spiegel/depm@latest
$ go install github.com/goark/depm@latest
```

### Binaries

See [latest release](https://github.com/spiegel-im-spiegel/depm/releases/latest).
See [latest release](https://github.com/goark/depm/releases/latest).

## Usage

Expand Down Expand Up @@ -69,7 +71,7 @@ Global Flags:
--goarch string set GOARCH environment variable
--goos string set GOOS environment variable
$ depm package "github.com/spiegel-im-spiegel/depm" | jq .
$ depm package "github.com/goark/depm" | jq .
[
{
"Package": {
Expand Down Expand Up @@ -127,7 +129,7 @@ Global Flags:
--goarch string set GOARCH environment variable
--goos string set GOOS environment variable
$ depm module "github.com/spiegel-im-spiegel/depm" | jq .
$ depm module "github.com/goark/depm" | jq .
[
{
"Module": {
Expand Down Expand Up @@ -163,7 +165,7 @@ $ depm module "github.com/spiegel-im-spiegel/depm" | jq .
```

```
$ depm module --dot --dot-config dotenc/sample.toml "github.com/spiegel-im-spiegel/depm" | dot -Tpng -o output.png
$ depm module --dot --dot-config dotenc/sample.toml "github.com/goark/depm" | dot -Tpng -o output.png
```

[![output.png](./output.png)](./output.png)
Expand Down Expand Up @@ -191,16 +193,16 @@ Global Flags:
--goarch string set GOARCH environment variable
--goos string set GOOS environment variable
$ depm list -u "github.com/spiegel-im-spiegel/depm"
$ depm list -u "github.com/goark/depm"
github.com/BurntSushi/toml v0.3.1
github.com/emicklei/dot v0.15.0
github.com/google/licenseclassifier v0.0.0-20210324205846-148b633b0534
github.com/sergi/go-diff v1.0.0 [v1.1.0]
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
github.com/spiegel-im-spiegel/depm
github.com/spiegel-im-spiegel/errs v1.0.2
github.com/spiegel-im-spiegel/gocli v0.10.4
github.com/goark/depm
github.com/goark/errs v1.0.2
github.com/goark/gocli v0.10.4
golang.org/x/mod v0.3.0 [v0.4.2]
golang.org/x/net v0.0.0-20201021035429-f5854403a974 [v0.0.0-20210324205630-d1beb07c2056]
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 [v0.0.0-20210324051608-47abb6519492]
Expand All @@ -212,4 +214,4 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1

[![dependency.png](./dependency.png)](./dependency.png)

[depm]: https://github.com/spiegel-im-spiegel/depm "spiegel-im-spiegel/depm: Visualize depndency packages and modules"
[depm]: https://github.com/goark/depm "goark/depm: Visualize depndency packages and modules"
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ tasks:
cmds:
- go mod verify
- go test -shuffle on ./...
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.42.0 golangci-lint run --enable gosec --timeout 3m0s ./...
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.44.2 golangci-lint run --enable gosec --timeout 3m0s ./...
sources:
- ./go.mod
- '**/*.go'

nancy:
desc: Check vulnerability of external packages with Nancy.
cmds:
- depm list -j | docker run --rm -i sonatypecommunity/nancy:latest sleuth -n
- depm list -j | nancy sleuth -n
sources:
- ./go.mod
- '**/*.go'
Expand Down
Binary file modified dependency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dependency/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dependency
import (
"sort"

"github.com/spiegel-im-spiegel/depm/modules"
"github.com/goark/depm/modules"
)

//EdgePackage is Graph of dependent packages
Expand Down
2 changes: 1 addition & 1 deletion dependency/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dependency
import (
"sort"

"github.com/spiegel-im-spiegel/depm/packages"
"github.com/goark/depm/packages"
)

//NodePackage is Graph of dependent packages
Expand Down
2 changes: 1 addition & 1 deletion dotenc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/BurntSushi/toml"
"github.com/spiegel-im-spiegel/errs"
"github.com/goark/errs"
)

//Config is configuration class
Expand Down
2 changes: 1 addition & 1 deletion dotenc/ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/emicklei/dot"
"github.com/spiegel-im-spiegel/errs"
"github.com/goark/errs"
)

//Ctx is context class for parsing
Expand Down
2 changes: 1 addition & 1 deletion facade/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package facade
import (
"fmt"

"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/goark/gocli/rwi"
)

func debugPrint(ui *rwi.RWI, err error) error {
Expand Down
8 changes: 4 additions & 4 deletions facade/facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package facade
import (
"runtime"

"github.com/goark/depm/ecode"
"github.com/goark/errs"
"github.com/goark/gocli/exitcode"
"github.com/goark/gocli/rwi"
"github.com/spf13/cobra"
"github.com/spiegel-im-spiegel/depm/ecode"
"github.com/spiegel-im-spiegel/errs"
"github.com/spiegel-im-spiegel/gocli/exitcode"
"github.com/spiegel-im-spiegel/gocli/rwi"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions facade/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"os"
"syscall"

"github.com/goark/depm/facade/lstjson"
"github.com/goark/depm/golist"
"github.com/goark/depm/list"
"github.com/goark/errs"
"github.com/goark/gocli/rwi"
"github.com/goark/gocli/signal"
"github.com/spf13/cobra"
"github.com/spiegel-im-spiegel/depm/facade/lstjson"
"github.com/spiegel-im-spiegel/depm/golist"
"github.com/spiegel-im-spiegel/depm/list"
"github.com/spiegel-im-spiegel/errs"
"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/spiegel-im-spiegel/gocli/signal"
)

//newModuleCmd returns cobra.Command instance for show sub-command
Expand Down
4 changes: 2 additions & 2 deletions facade/lstjson/lstjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"fmt"

"github.com/spiegel-im-spiegel/depm/golist"
"github.com/spiegel-im-spiegel/errs"
"github.com/goark/depm/golist"
"github.com/goark/errs"
)

//Encode returns JSON formatted text from Module list.
Expand Down
8 changes: 4 additions & 4 deletions facade/modjson/modjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"sort"

"github.com/spiegel-im-spiegel/depm/dependency"
"github.com/spiegel-im-spiegel/depm/dotenc"
"github.com/spiegel-im-spiegel/depm/modules"
"github.com/spiegel-im-spiegel/errs"
"github.com/goark/depm/dependency"
"github.com/goark/depm/dotenc"
"github.com/goark/depm/modules"
"github.com/goark/errs"
)

type nodeJSON struct {
Expand Down
14 changes: 7 additions & 7 deletions facade/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"os"
"syscall"

"github.com/goark/depm/dependency"
"github.com/goark/depm/facade/modjson"
"github.com/goark/depm/golist"
"github.com/goark/depm/modules"
"github.com/goark/errs"
"github.com/goark/gocli/rwi"
"github.com/goark/gocli/signal"
"github.com/spf13/cobra"
"github.com/spiegel-im-spiegel/depm/dependency"
"github.com/spiegel-im-spiegel/depm/facade/modjson"
"github.com/spiegel-im-spiegel/depm/golist"
"github.com/spiegel-im-spiegel/depm/modules"
"github.com/spiegel-im-spiegel/errs"
"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/spiegel-im-spiegel/gocli/signal"
)

//newModuleCmd returns cobra.Command instance for show sub-command
Expand Down
14 changes: 7 additions & 7 deletions facade/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"os"
"syscall"

"github.com/goark/depm/dependency"
"github.com/goark/depm/facade/pkgjson"
"github.com/goark/depm/golist"
"github.com/goark/depm/packages"
"github.com/goark/errs"
"github.com/goark/gocli/rwi"
"github.com/goark/gocli/signal"
"github.com/spf13/cobra"
"github.com/spiegel-im-spiegel/depm/dependency"
"github.com/spiegel-im-spiegel/depm/facade/pkgjson"
"github.com/spiegel-im-spiegel/depm/golist"
"github.com/spiegel-im-spiegel/depm/packages"
"github.com/spiegel-im-spiegel/errs"
"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/spiegel-im-spiegel/gocli/signal"
)

//newPackageCmd returns cobra.Command instance for show sub-command
Expand Down
12 changes: 6 additions & 6 deletions facade/pkgjson/pkgjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package pkgjson
import (
"encoding/json"

"github.com/spiegel-im-spiegel/depm/dependency"
"github.com/spiegel-im-spiegel/depm/dotenc"
"github.com/spiegel-im-spiegel/depm/golist"
"github.com/spiegel-im-spiegel/depm/modules"
"github.com/spiegel-im-spiegel/depm/packages"
"github.com/spiegel-im-spiegel/errs"
"github.com/goark/depm/dependency"
"github.com/goark/depm/dotenc"
"github.com/goark/depm/golist"
"github.com/goark/depm/modules"
"github.com/goark/depm/packages"
"github.com/goark/errs"
)

type nodeJSON struct {
Expand Down
4 changes: 2 additions & 2 deletions facade/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package facade
import (
"strings"

"github.com/goark/gocli/rwi"
"github.com/spf13/cobra"
"github.com/spiegel-im-spiegel/gocli/rwi"
)

var (
usage = []string{ //output message of version
Name + " " + Version,
"repository: https://github.com/spiegel-im-spiegel/depm",
"repository: https://github.com/goark/depm",
}
)

Expand Down
6 changes: 3 additions & 3 deletions facade/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"testing"

"github.com/spiegel-im-spiegel/gocli/exitcode"
"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/goark/gocli/exitcode"
"github.com/goark/gocli/rwi"
)

func TestVersionNormal(t *testing.T) {
Expand All @@ -14,7 +14,7 @@ func TestVersionNormal(t *testing.T) {
out string
outErr string
}{
{args: []string{"version"}, out: "", outErr: "depm developer version\nrepository: https://github.com/spiegel-im-spiegel/depm\n"},
{args: []string{"version"}, out: "", outErr: "depm developer version\nrepository: https://github.com/goark/depm\n"},
}

for _, tc := range testCases {
Expand Down
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
module github.com/spiegel-im-spiegel/depm
module github.com/goark/depm

go 1.17

require (
github.com/BurntSushi/toml v0.4.1
github.com/BurntSushi/toml v1.0.0
github.com/emicklei/dot v0.16.0
github.com/goark/errs v1.1.0
github.com/goark/gocli v0.12.0
github.com/google/licenseclassifier v0.0.0-20210722185704-3043a050f148
github.com/spf13/cobra v1.2.1
github.com/spiegel-im-spiegel/errs v1.0.5
github.com/spiegel-im-spiegel/gocli v0.10.5
golang.org/x/tools v0.1.5
github.com/spf13/cobra v1.4.0
golang.org/x/tools v0.1.9
)

require (
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/mod v0.4.2 // indirect
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
golang.org/x/mod v0.5.1 // indirect
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)
Loading

0 comments on commit 9243473

Please sign in to comment.