From aef96be7f329e78ab3f214dbeb72c4167843c72f Mon Sep 17 00:00:00 2001 From: Mirco Date: Fri, 5 May 2023 11:00:12 +0200 Subject: [PATCH] Add description Go/forgejo Installation and Testing --- doc/GoForgejo_install.md | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/GoForgejo_install.md diff --git a/doc/GoForgejo_install.md b/doc/GoForgejo_install.md new file mode 100644 index 0000000..7859b2f --- /dev/null +++ b/doc/GoForgejo_install.md @@ -0,0 +1,43 @@ +# Go / forgejo Installation and Testing + +## go install/update +#### remove old version +sudo rm -rf ~/go +### download latest version and configure +curl -OL https://go.dev/dl/$(curl 'https://go.dev/VERSION?m=text').linux-amd64.tar.gz + +extract latest version to ~/go +tar -C ~ -xzf go*.linux-amd64.tar.gz + +APPEND='export PATH=$PATH:$HOME/go/bin' + +echo $APPEND >> $HOME/.profile + +## VScode optional - TODO!?! +Go extension autoinstall +install gpls, div, etc. + +## Testing forgejo +full: +make test + +require node: +make test-frontend + +require go: +make test-backend + +#nvm - required to build forgejo frontend +sudo apt remove nodejs +sudo apt autoremove + +adapt version to latest: +curl o https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +nvm install + +optional: +nvm alias default "latest" + +## forgejo build +TAGS="bindata" make build +-> include make frontend & make backend //see details Makefile