From 73149fcf85ec7cedbd9c0bfdcff41626f95ff9a9 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Fri, 28 Apr 2023 23:17:14 +0530 Subject: [PATCH] ldflags --- docs/setup_manual.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/setup_manual.md b/docs/setup_manual.md index 1bd8b16..a3bfc7f 100644 --- a/docs/setup_manual.md +++ b/docs/setup_manual.md @@ -16,12 +16,19 @@ You need to clone the repository. You can do this by running the following comma ```bash git clone https://codeberg.org/gothub/gothub.git +git checkout master +``` + +If you want to run the bleeding edge, in exchange for having to deal with occasional bugs, run the following command: + +```bash +git checkout dev ``` Then, you need to build the binary. You can do this by running the following command: ```bash -go build +go build -ldflags="-X codeberg.org/gothub/gothubs/utils.Branch=$(git rev-parse --abbrev-ref HEAD)" ``` ## Configuration @@ -50,4 +57,4 @@ GotHub's CLI has a command to update GotHub. You can run this command by running ./gothub update ``` -It will try to pull from Git and then rebuild the binary. If it doesn't work, just run ``git pull`` and then ``go build``. \ No newline at end of file +It will try to pull from Git and then rebuild the binary. If it doesn't work, just run ``git pull`` and then ``go build``.