Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the nocgo build flag to enable a build without sqlite3 #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 17, 2023

  1. Add the nocgo build flag to enable a build without sqlite3

    This involves adding some stub files that panic if they are ever used on
    a nocgo build - i.e. one excluding sqlite3 but the default build will
    build with sqlite3 support using CGO.
    
    CGO is great if you need it, but can cause various types of failures and
    complexities particularly on on-standard toolcahins. As a library user I if I do not use sqlite3 I would rather not pay the prices of using CGO.
    
    In particular at the time of writing static CGO builds with go 1.13 do
    not work for me on musl-gcc or Arch Linux.
    
    Signed-off-by: Silas Davis <[email protected]>
    Silas Davis authored and AlexCuse committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    949e558 View commit details
    Browse the repository at this point in the history