Giter Site home page Giter Site logo

Comments (4)

doug-galvanick avatar doug-galvanick commented on June 26, 2024

Perhaps something like this - https://github.com/pganalyze/pg_query_go#usage-with-go-modules

When integrating this library using Go modules, and using a vendor/ directory, you will need to explicitly copy over some of the C build files, since Go does not copy files in subfolders without .go files whilst vendoring.

from go-duckdb.

marcboeker avatar marcboeker commented on June 26, 2024

Thanks for reporting this. I've done some testing to include the deps directory in the vendoring process, but had no success. It seems that go mod vendor only supports Go source files that are imported.

from go-duckdb.

oleksandr avatar oleksandr commented on June 26, 2024

perhaps, as a interim solution, the binaries could be placed elsewhere and their location could be provided with an env variable (during the build process), that doesn't conflict with others?

from go-duckdb.

MathiasGr avatar MathiasGr commented on June 26, 2024

What has worked for me is to add these steps to our CI pipeline, using modvendor to vendor the non-go items.

          # Install and run github.com/goware/modvendor to vendor C dependencies.
          - go install github.com/goware/modvendor@latest
          - modvendor -copy="**/*.a" -v

from go-duckdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.