Update README with Go install instructions

Clarify instructions for Go installation and binary location.
This commit is contained in:
Carter Perez 2026-01-02 11:44:43 -05:00 committed by GitHub
parent 1d7b081af0
commit efc05206f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -38,14 +38,14 @@ go build -o docksec ./cmd/docksec
This builds a binary in the current directory. The `./` is required because the binary is not in your PATH.
### Option 2: Go install (for Go developers)
### Option 2: Go install (for Go developers) This same project lives in a seperate repo https://github.com/CarterPerez-dev/docksec - in order to be able to:
```bash
go install github.com/CarterPerez-dev/docksec/cmd/docksec@latest
docksec scan
```
This downloads the source, compiles it on your machine, and puts the binary in `~/go/bin/`. If that directory is in your PATH, you can run `docksec` directly without `./`.
Because downloads the source, compiles it on your machine, and puts the binary in `~/go/bin/`. If that directory is in your PATH, you can run `docksec` directly without `./`.
The `/cmd/docksec` path is needed because the main package lives in that subdirectory, not at the repo root.