Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Latest commit

 

History

History
61 lines (42 loc) · 1.37 KB

build.md

File metadata and controls

61 lines (42 loc) · 1.37 KB

How to build Backpack binaries from source code

This document will show you how to build binaries to use Backpack.

Requirements

Before proceeding ensure to have the following software installed:

On macOS you can use homebrew to install quickly the requirements:

brew install go make git

On most of Debian and Ubuntu-based OOS you can run:

apt update
apt install git make

Please follow this guide (pkg) or this guide (src) to install Go with the latest version, as both Debian and Ubuntu official repositories might provide an old version.

Building

First, we need to clone the repository and obtain the latest version of the source code.

git clone https://gitlab.com/Qm64/backpack.git
git checkout latest

Now we are ready to clean the builds, get the dependencies and compile the binaries.

cd backpack
make

The binary will be available in build/backpack

Installing

To install buildpack command, you can run:

make install

This will install it under your $GOBIN, which defaults to $GOPATH/bin and should be available in the $PATH.