Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
GO_PATH -> GOPATH in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
divoxx committed Apr 1, 2013
1 parent 70d989e commit 8a3c6d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -12,14 +12,14 @@ A very complicated project composed of 29 lines of code :-)
Introduction
------------

Simple wrapper around Go(lang) build tool that simplify having project-specific `GO_PATH` configurations.
Simple wrapper around Go(lang) build tool that simplify having project-specific `GOPATH` configurations.

Because of the way `go get` works and how dependencies are managed, ideally, each project would have it's
own workspace (GO_PATH) where it's source code and dependencies would exist isolated from other projects.
Managing `GO_PATH` can be a pain though.
own workspace (GOPATH) where it's source code and dependencies would exist isolated from other projects.
Managing `GOPATH` can be a pain though.

GoProj try to solve this by wrapping the go executable, looking for a `.goproj` file up from the current
directory and setting `GO_PATH` to that folder prior to delegating the call to the go tool.
directory and setting `GOPATH` to that folder prior to delegating the call to the go tool.

For example, given the following folder structure.

Expand All @@ -36,11 +36,11 @@ For example, given the following folder structure.
```

If you run `go build` from inside `projects/src/github.com/divoxx/foo`, the wrapper will go up the path
looking for the first .gopath location, set `GO_PATH="/projects/foo"` and delegate to the original go tool.
looking for the first .gopath location, set `GOPATH="/projects/foo"` and delegate to the original go tool.

The content of `.gopath` is irrelevant, it's recommended to simply `touch .gopath`.

In case a `.gopath` is not found, the wrapper won't touch the `GO_PATH` env variable and will just delegate
In case a `.gopath` is not found, the wrapper won't touch the `GOPATH` env variable and will just delegate
to go tool.

Installation
Expand Down

0 comments on commit 8a3c6d1

Please sign in to comment.