1
0

go mod way to build

This commit is contained in:
dump_stack() 2023-03-16 09:52:34 +00:00
parent f10c4165a1
commit 585a608083
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -53,15 +53,16 @@ Install dependencies::
Common
======
Setup Go environment::
Setup environment::
$ echo 'export GOPATH=$HOME' >> ~/.bashrc
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
$ source ~/.bashrc
Build *out-of-tree*::
$ go get -u code.dumpstack.io/tools/out-of-tree
$ git clone https://code.dumpstack.io/tools/out-of-tree
$ cd out-of-tree
$ go build -o ~/bin/out-of-tree
.. note::
On a GNU/Linux you need to add your user to docker group if you want
@ -71,7 +72,7 @@ Build *out-of-tree*::
Test that everything works::
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/examples/kernel-exploit
$ cd out-of-tree/examples/kernel-exploit
$ out-of-tree kernel autogen --max=1
$ out-of-tree pew --max=1