Build the binary
# spicedb
s
how would I go about building the spicedb binary locally?
v
Just like any go project, with go build
If you need a build on main branch, we offer a nightly docker container
s
Running
go build .
on main branch gives me
package github.com/authzed/spicedb: build constraints exclude all Go files in /Users/smaran/Documents/Capstone/spicedb
Is that expected? Also which is the stable release branch that I can build otherwise on
x
try this:
go build -o dist/spicedb ./cmd/spicedb/...
v
☝️ the spicedb
main.go
lives under
cmd/spicedb
>Also which is the stable release branch that I can build otherwise on You can see the release branches on github, for each new release there should be a counterpart tag.
s
Got it thank youu! Will try this out
v
out of curiosity, what are you trying to achieve?
s
For my final year project in uni, we are trying to build a indexing system for spicedb which uses dynamic transitive closures instead of a on disk bfs on cache miss ( i believe that's how spicedb does it) or a leapord style index (which you guys implemented in materialize iirc)
Not sure if it'll work tho, the graph theory is very complex for us undergrads to understand :/
Imean trying to for Zanzibar like systems and spicedb is the best open source Zanzibar like system out there so
This worked thank you so much!!