https://github.com/yanndr/deptree
Dependency tree for perl distribution written in go
https://github.com/yanndr/deptree
dependency-tree docker go perl
Last synced: 2 months ago
JSON representation
Dependency tree for perl distribution written in go
- Host: GitHub
- URL: https://github.com/yanndr/deptree
- Owner: yanndr
- Created: 2018-10-26T14:18:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T14:22:57.000Z (over 7 years ago)
- Last Synced: 2025-02-27T16:04:44.452Z (over 1 year ago)
- Topics: dependency-tree, docker, go, perl
- Language: Go
- Homepage:
- Size: 134 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Deptree
This library produces a fully resolved dependency tree for Perl distributions.
A command line client is available on the cmd\deptree folder.
## Installing
1. Clone the repository `go get https://github.com/yanndr/deptree`.
2. Build/install the application :`make install` or `go build ./cmd/deptree`
## Usage
This program needs access to a CPAN folder to run successfully; one is provided here ./cmd/deptree/data.
You can define the path of the CPAN folder with the flag -path. By default the path is set to ./data. If you run the program directely from the ./cmd/deptree folder, you won't have to define the -path flag.
```
deptree -path path/to/cpan -name DateTime -name Specio
OPTIONS:
-name value
Distribition name to resolve; this flag is mandatory. You need to define it once but you can also define it multiple times.
-path string
The path to the CPAN folder. (default "./data")
```
Example:
```
deptree -name DateTime
```
## Docker
You can aslo use the program with Docker.
First you'll have to make the docker image:
```
make docker
```
or
```
docker build -t deptree .
```
Once the docker image is created, you can run the program with the command:
```
docker run --rm -it deptree -name DateTime
```
The docker image embeds a data folder on the root folder, so you don't have to specify the -path flag.
If you want to use a different path, use the following syntax:
```
docker run --rm -it -v $PWD/cmd/deptree/data:/mydata deptree -name DateTime -path ./mydata
```