Skip to content

Customizable libmongoc driver version #114

@baumgold

Description

@baumgold

Upon the recent release of MongoC_jll.jl v1.25.1+1 (a major version bump) my client code that uses Mongoc.jl automatically picked up the new MongoC_jll.jl (as expected). However this caused my previously working code to break with the following error:

ERROR: LoadError: BSONError: domain=3, code=15, message=Server at mongo-server:27017 reports wire version 4, but this version of libmongoc requires at least 6 (MongoDB 3.6)
Stacktrace:
  [1] _iterate(cursor::Mongoc.Cursor{Mongoc.Collection}, state::Nothing)
    @ Mongoc ~/.julia/packages/Mongoc/tJNDW/src/collection.jl:690
  [2] iterate (repeats 2 times)
    @ ~/.julia/packages/Mongoc/tJNDW/src/collection.jl:698 [inlined]
  [3] iterate
    @ ./generator.jl:44 [inlined]

How can I explicitly specify the libmongoc driver version that I want to use in my client code? Suggestions appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions