-
Notifications
You must be signed in to change notification settings - Fork 4
rodentrc file
A rodentrc file can be created globally or per project/directly level. Local settings overwrites global settings. Each time you go into your project, you automatically use the settings related to this project. This allows you to create simple workflow with a level of flexibility.
2 of the rodentrc variables "gopath" and "gobin" refer to the standard Golang environment variables, that is GOPATH and GOBIN. You may define them in .rodentrc and suffix them with an environment tag following this pattern "_LABEL".
gopath_prod="/my/prd/go/path"
Any rodentrc variables can be suffixed with a "_LABEL" and get activated once you set the RODENT_ENV.
For example, let's assume in ".rodentrc", you currently have defined 2 gopath* variable such as:
gopath="/my/prd/go/path"
gopath_dev="/my/dev/go/path"
If you execute
RODENT_ENV=dev && go get ...
then GOPATH will be set to "/my/dev/go/path"
If you unset RODENT_ENV, the default value of "/my/prd/go/path" will be ussed.
The "gover" variable is used to specify the version of Golang you wish to use.
gover=go1.2.2
The "godeps" variable sets a path which precedes the existing GOPATH declaration to ensure your third partly dependencies are stored there.
godeps="/my/path/to/awesome/libs