github.com/PDOK/gokoala@v0.50.6/internal/ogc/features/datasources/geopackage/backend_cloud_darwin.go (about)

     1  //go:build darwin
     2  
     3  package geopackage
     4  
     5  import (
     6  	"log"
     7  
     8  	"github.com/PDOK/gokoala/config"
     9  )
    10  
    11  // Dummy implementation to make compilation on macOS work. We don't support cloud-backed
    12  // sqlite/geopackages on macOS since the LLVM linker on macOS doesn't support the
    13  // '--allow-multiple-definition' flag. This flag is required since both the 'mattn' sqlite
    14  // driver and 'go-cloud-sqlite-vfs' contain a copy of the sqlite C-code, which causes
    15  // duplicate symbols (aka multiple definitions).
    16  func newCloudBackedGeoPackage(_ *config.GeoPackageCloud) geoPackageBackend {
    17  	log.Fatalf("Cloud backed GeoPackage isn't supported on darwin/macos")
    18  	return nil
    19  }