srclib-sample

module
v0.0.0-...-e753b11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2015 License: MIT

README

srclib-sample Build Status

Sample toolchain demonstrating how to build a toolchain for srclib to implement source code and dependency analysis for a programming language.

Usage

First, install srclib.

Then, to set up this toolchain, clone this repository. Then from the directory you cloned it to, run:

src toolchain add sourcegraph.com/sourcegraph/srclib-sample

That adds a symlink to this directory in your SRCLIBPATH.

Now, running src toolchain list should show this toolchain

$ src toolchain list
PATH                                       TYPE
...
sourcegraph.com/sourcegraph/srclib-sample  program, docker

Next, build this toolchain's Docker image:

src toolchain build sourcegraph.com/sourcegraph/srclib-sample

Now try running the tests, in both variants: invoking this toolchain as a program and invoking it in a Docker container.

git submodule update --init # Initializes the testing submodules.
src test -m docker
src test -m program

Directories

Path Synopsis
Package sample provides a Go def formatter for sample source unit defs.
Package sample provides a Go def formatter for sample source unit defs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL