From b51e5b5b30e3c3ac58305013ab1a268d18accf12 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 1 Mar 2023 15:36:34 +0100 Subject: Docs: Add info about -tags=release for building --- docs/src/gettingstarted/building/go.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/src') diff --git a/docs/src/gettingstarted/building/go.md b/docs/src/gettingstarted/building/go.md index 84c39fd..7d07ca8 100644 --- a/docs/src/gettingstarted/building/go.md +++ b/docs/src/gettingstarted/building/go.md @@ -70,3 +70,9 @@ Usually you won't need to do this, as changes in the library should automaticall Specify `CLEAN_ALL=1` to also remove downloaded dependencies for some wrappers. You can clean individual wrappers by executing clean in their directories, or specify `WRAPPERS=...`. +## Note on releases +Releases are build with the go tag "release" (add flag "-tags=release") to bundle the discovery JSON files and embed them in the shared library. See the [make_release](https://github.com/eduvpn/eduvpn-common/blob/main/make_release.sh) script on how we bundle the files. A full command without the Makefile to build this library is: + +```bash +go build -o lib/libeduvpn_common-${VERSION}.so -tags=release -buildmode=c-shared ./exports +``` -- cgit v1.2.3