This is information for working on the library itself. For docs on how to use the library, see readme.md.
You need go 1.11 or later. Earlier versions have bugs that affect us (golang/go#18468, golang/go#26390) and don't support modules.
git clone https://github.com/ravendb/ravendb-go-client.git
cd ravendb-go-client
To run all tests: .\scripts\run_tests.ps1
.
On Windows, if RavenDB server is not present locally, we'll download it to RavenDB
directory.
To avoid writing helper scripts twice, many are written in PowerShell. You can install PowerShell on mac using Homebrew: brew cask install powershell
(see https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-6 for up-to-date information).
For running HTTPS tests you must import certs/ca.crt
as trusted certificate:
- double-click on
certs/ca.crt
file. That opensKeychain Access
system app. - lick on
Certificates
category, double-click ona.javatest11.development.run
certificate. - this opens a dialog box. In
Trust
section selectAlways Trust
drop-down item.
To run all tests: ./scripts/run_tests.ps
More dev information: