Skip to content

Commit

Permalink
Prep for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
sfowl committed Nov 14, 2023
1 parent 8228b5d commit 44d9278
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ On Fedora:
$ dnf install golang-bin yarnpkg maven rubygem-bundler ruby-devel gcc gcc-c++ npm
```


Also supports `rbenv`. Any ruby versions installed with `rbenv` will be used as backups from starting with system ruby (if available), and then from newest to oldest.

## Command Line

### Build from source
Expand All @@ -44,6 +41,19 @@ pkg:npm/[email protected]
...
```

Verbose/debug output:

```bash
deplist -debug ./test/testRepo/
DEBU[0000] Checking ./test/testRepo/
DEBU[0000] GetRubyDeps test/testRepo/Gemfile
DEBU[0000] Running env [--chdir=test/testRepo ruby /tmp/gemfile-parser.rb927489446 .]
DEBU[0000] GetGoPkgDeps test/testRepo/Gopkg.lock
DEBU[0000] GetGlideDeps test/testRepo/glide.lock
DEBU[0000] GetGolangDeps test/testRepo/go.mod
...
```

## API

The api functions as follows:
Expand Down
4 changes: 4 additions & 0 deletions internal/scan/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func runGoList(path string) ([]byte, error) {
out, err = runCmd(path, "-mod=vendor")
}
}
if err != nil {
log.Debug("Retrying `go list` with `-mod=readonly` flag")
out, err = runCmd(path, "-mod=readonly")
}
if err != nil {
log.Debug("Retrying `go list` with `-e` flag")
out, err = runCmd(path, "-e")
Expand Down

0 comments on commit 44d9278

Please sign in to comment.