Skip to content

Commit

Permalink
how to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ssst0n3 committed Sep 27, 2021
1 parent 43cfa04 commit b63d058
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ func Crash() {
2. 复制你刚刚下载的`go-extractor`,覆盖`$HOME/codeql-home/codeql/go/tools/linux64/go-extractor`
3. 然后就像你往常创建codeql数据库一样。

## Build
```shell
cd extractor/cli/go-extractor/
go build
```

## 原理
codeql官方的go-extractor跳过了vendor目录, 我只是又加了回来。

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ func Crash() {
2. copy the extractor tool `go-extractor` you downloaded into `$HOME/codeql-home/codeql/go/tools/linux64/go-extractor`.
3. just create database like before.

## Build
```shell
cd extractor/cli/go-extractor/
go build
```

## How it works?
The official extractor for golang pass the vendor directory, what I did is just removing the vendor in the regexp pattern.

Expand Down

0 comments on commit b63d058

Please sign in to comment.