-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[direnv] Add basic .envrc.example (#4747)
Add a basic .envrc.example that will build the go sdk using the Makefile and setup the environment to use it so developers who use direnv can easily "automatically" use the managed go sdk. Update CONTRIBUTING.md to add a section describing the intended usage of direnv .envrc.example. Signed-off-by: Zack Train <ztrain@uber.com>
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toplevel="$(git rev-parse --show-toplevel)" | ||
|
||
# build and use the managed go sdk | ||
unset GOROOT | ||
make -C "$toplevel" go-check | ||
PATH="$(make --no-print-directory -C "$toplevel" go-bin-path)" | ||
|
||
# add custom direnv initialization below here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.build | ||
.cache | ||
.data | ||
.envrc | ||
.glide | ||
.tmp | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters