From 2a852c9129dcade4bf79cc2b377a7d5df2006329 Mon Sep 17 00:00:00 2001 From: Maurizio Pillitu Date: Wed, 17 Jul 2024 14:57:07 +0200 Subject: [PATCH] Install a local checkout --- website/docs/installation.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/docs/installation.mdx b/website/docs/installation.mdx index 40089652..ad3681b1 100644 --- a/website/docs/installation.mdx +++ b/website/docs/installation.mdx @@ -30,3 +30,17 @@ To install a specific version of the GitProxy CLI, append the version to the end ```bash npm install -g @finos/git-proxy-cli@1.0.0 ``` + +### Install a local checkout + +To test a personal fork, or the latest version of the main branch: + +```bash +git clone git@github.com:finos/git-proxy.git +cd git-proxy +npm pack +npm i -g finos-git-proxy-.tar.gz +git-proxy --version +``` + +To make sure that the `git-proxy` command is using your checked out version, update the `version` in `package.json` before running `npm pack`, then verify that the same version is returned when running `git-proxy --version`.