Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you run the program? #9

Open
agentram opened this issue Dec 25, 2020 · 1 comment
Open

How do you run the program? #9

agentram opened this issue Dec 25, 2020 · 1 comment

Comments

@agentram
Copy link

It's not obvious to me how to run the program locally:

$ git clone https://github.com/ozonru/dtrack-audit.git
Cloning into 'dtrack-audit'...
remote: Enumerating objects: 104, done.
remote: Counting objects: 100% (104/104), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 104 (delta 39), reused 79 (delta 24), pack-reused 0
Receiving objects: 100% (104/104), 29.85 KiB | 5.97 MiB/s, done.
Resolving deltas: 100% (39/39), done.

$ go run cmd/dtrack-audit/main.go
package command-line-arguments
	cmd/dtrack-audit/main.go:6:2: use of internal package github.com/ozonru/dtrack-audit/internal/dtrack not allowed

Maybe I don't know something, but it's the thing I want to understand. Maybe you changed your local $GOPATH and have a special directory structure for this project?

@oxdef
Copy link
Collaborator

oxdef commented Dec 28, 2020

@agentram Currently I run it in this way:

$ go version
go version go1.14.10 linux/amd64

$ pwd
/home/oxdef/src/go/src/github.com/ozonru/dtrack-audit

$ echo $GOPATH 
/home/oxdef/src/go

$ go run cmd/dtrack-audit/main.go 
Send SBOM file to Dependency Track for audit.
...

Also I have made an issue to update README to make local usage and development easy #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants