/sandstorm-filesystem

capnp schema for filesystem access

Primary LanguageGoApache License 2.0Apache-2.0

WIP CapNProto filesystem schema + example sandstorm apps

Why

File(system) access is a common enough need that many Sandstorm apps end up bundling their own file manager UI, and there's a lot of duplication. It would be better if there was a standard schema that apps could use to allow one another access to files.

What

This repo contains a work-in-progress schema that can be requested & offered via the powerbox, plus some example apps. See this mailing list post for more information.

License

Apache 2.0

Building

You can just do the usual vagrant-spk dance, or if you want to use a local dev server (not vagrant-spk), make sure you have a go toolchain installed and do:

go get -d
make dev

Troubleshooting

The Makefile is a fairly simple wrapper around Go's default build system. For sandstorm folks less familiar with Go, here are a few common errors and how to get around them:

  • symptoms: make responds with cannot find package "github.com/gorilla/mux"
    • treatment: go get
  • symptoms: package zenhack.net/go/sandstorm-filesystem/filesystem: unrecognized import path ...
    • treatment: make sure your source lives at $GOPATH/src/zenhack.net/go/sandstorm-filesystem