-
Notifications
You must be signed in to change notification settings - Fork 9
Setting up the Goland IDE
Tyler Denniston edited this page Apr 26, 2019
·
3 revisions
-
Clone the project:
$ git clone git@github.com:TileDB-Inc/TileDB-Go.git
-
Open the
TileDB-Go
directory as a project in Goland. -
When the project opens you will be prompted to configure integration for Go Modules (vgo). Say yes.
-
In the configuration screen, Check the "Enable Go Modules (vgo) integration" checkbox. Leave the "Vendoring mode" checkbox unchecked.
-
Add a new build configuration (top right of the screen):
- Type: go build
- Run kind: Package
- Package path:
github.com/TileDB-Inc/TileDB-Go
- Output directory:
/path/to/TileDB-Go/build
(useful for manually cleaning up after builds) - Environment:
CGO_CFLAGS=-I/path/to/TileDB/dist/include
andCGO_LDFLAGS=-L/path/to/TileDB/dist/lib
- Go tool arguments: empty
-
Run the build configuration.
- Add a new test configuration:
- Type: go test
- Test kind: Package
- Package path:
github.com/TileDB-Inc/TileDB-Go
- Same
CGO_{C,LD}FLAGS
as above - Also
DYLD_LIBRARY_PATH=/path/to/TileDB/dist/lib
- Open a test file, e.g.
array_test.go
. At the import line for thetestify
dependency, click on the error bubble and select "Sync packages of github.com/TileDB-Inc/TileDB-Go". This will download the dependencies. - Run the test configuration.