Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple repo roots #5

Closed
petar opened this issue Sep 20, 2018 · 2 comments
Closed

Multiple repo roots #5

petar opened this issue Sep 20, 2018 · 2 comments
Assignees

Comments

@petar
Copy link
Contributor

petar commented Sep 20, 2018

Support multiple colon-separated repo roots in KOPATH, searched in the order given.
This generalizes the notion of having a separate KOROOT and KOPATH variables.

@ewoutp
Copy link
Member

ewoutp commented Sep 24, 2018

Multiple roots will be helpful anyway. Still believe a separate root (ala go) will be useful as well, both for library as well as tool locations (as soon as we have tools like ko fmt, kodoc etc)

@mewmew
Copy link
Contributor

mewmew commented Sep 25, 2018

This hit me today, when trying out the hello world example.

$ go get github.com/kocircuit/kocircuit/lang/ko
$ ko play github.com/kocircuit/kocircuit/codelab/HelloWorld
(kocircuit/lang/go/sys/compile.go:31) (ko/R0) compiled functions=0 steps=0 steps-per-function=0.00
cannot find main circuit github.com/kocircuit/kocircuit/codelab/HelloWorld
$ echo $GOPATH
/home/u/goget:/home/u/Desktop/go
$ set GOPATH /home/u/goget
$ echo $GOPATH
/home/u/goget
$ ko play github.com/kocircuit/kocircuit/codelab/HelloWorld
(kocircuit/lang/go/sys/compile.go:31) (ko/R0) compiled functions=1 steps=2 steps-per-function=2.00
"Hello, world!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants