timshannon / badgerhold

BadgerHold is an embeddable NoSQL store for querying Go types built on Badger
MIT License
515 stars 52 forks source link

Cannot run tests #14

Closed harshpreet93 closed 4 years ago

harshpreet93 commented 4 years ago

I'm trying to run the tests and getting the following error: # github.com/timshannon/badgerhold ./store.go:48:41: cannot call non-function badger.DefaultOptions (type badger.Options) FAIL github.com/timshannon/badgerhold [build failed]

Am I doing something wrong here?

timshannon commented 4 years ago

I know at one point, dgraph updated their default options interface, and broke backwards compatibility. See https://github.com/timshannon/badgerhold/issues/12. I updated to their latest, and changed the code to reflect their changes.

I'm betting you might still have an older version of badger installed. Try running go get -u and trying again.

harshpreet93 commented 4 years ago

@timshannon that was the issue! 🙇Closing this now