From 80ee402aba822ec799ce58f9bfc11a300ac6af73 Mon Sep 17 00:00:00 2001 From: Hollow Man Date: Thu, 18 May 2023 14:14:32 +0300 Subject: [PATCH] Updated Building (markdown) --- Building.md | 40 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/Building.md b/Building.md index 77f0da6..0ae1797 100644 --- a/Building.md +++ b/Building.md @@ -9,22 +9,21 @@ git clone https://github.com/kubescape/kubescape cd kubescape ``` -## Build on Linux/MacOS +## Minimum build -### Minimum build +``` +go build -tags=static . +``` -1. Build kubescape +## Build with git enabled +> **Note** +> For performance reasons it's better to build with libgit2 when **scanning git repos**. - ``` - go build -tags=static . - ``` - -### With git enabled +### Linux/MacOS 1. Install libgit2 dependency _(needed only for the first time)_ > **Note** - > 1. For performance reasons it's better to build with this dependency when **scanning git repos**. - > 2. `cmake` and `pkg-config` is required to build libgit2. You can install it by running `sudo apt-get install cmake pkg-config` (Linux) or `brew install cmake pkg-config` (macOS). + > `cmake` and `pkg-config` are required to build libgit2. You can install it by running `sudo apt-get install cmake pkg-config` (Linux) or `brew install cmake pkg-config` (macOS). ``` make libgit2 @@ -42,26 +41,7 @@ cd kubescape make test ``` -## Build on Windows - -### Minimum build - -1. Install MSYS2 _(needed only for the first time)_ - - ``` - build.bat install - ``` - -2. Build kubescape - - ``` - go build -tags=static . - ``` - -### With git enabled - -> **Note** -> For performance reasons it's better to build with this dependency when **scanning git repos**. +### Windows 1. Install MSYS2 & build libgit _(needed only for the first time)_ > **Note**