-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from syndbg/prepare-2.0.0beta8
Prepare 2.0.0beta8
- Loading branch information
Showing
6 changed files
with
98 additions
and
34 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
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,59 @@ | ||
# Contributing | ||
|
||
The goenv source code is [hosted on GitHub](https://github.com/syndbg/goenv). | ||
It's clean, modular, and easy to understand, even if you're not a shell hacker. (I hope) | ||
|
||
Tests are executed using [Bats](https://github.com/bats-core/bats-core). | ||
|
||
Please feel free to submit pull requests and file bugs on the [issue tracker](https://github.com/syndbg/goenv/issues). | ||
|
||
## Prerequisites | ||
|
||
* Linux with any (or more than 1) of `zsh`, `bash`, `zsh`. | ||
|
||
## Common commands | ||
|
||
### Running the tests for both `goenv` and `goenv-go-build` | ||
|
||
```shell | ||
> make test | ||
``` | ||
|
||
### Running the tests only for `goenv` | ||
|
||
```shell | ||
> make test-goenv | ||
``` | ||
|
||
### Running the tests only for `goenv-go-build` | ||
|
||
```shell | ||
> make test-goenv-go-build | ||
``` | ||
|
||
### Others | ||
|
||
Check the [Makefile](./Makefile) | ||
|
||
## Workflows | ||
|
||
### Submitting an issue | ||
|
||
1. Check existing issues and verify that your issue is not already submitted. | ||
If it is, it's highly recommended to add to that issue with your reports. | ||
2. Open issue | ||
3. Be as detailed as possible - Linux distribution, shell, what did you do, | ||
what did you expect to happen, what actually happened. | ||
|
||
### Submitting a PR | ||
|
||
1. Find an existing issue to work on or follow `Submitting an issue` to create one | ||
that you're also going to fix. | ||
Make sure to notify that you're working on a fix for the issue you picked. | ||
1. Branch out from latest `master`. | ||
1. Code, add, commit and push your changes in your branch. | ||
1. Make sure that tests (or let the CI do the heavy work for you). | ||
1. Submit a PR. | ||
1. Make sure to clarify if the PR is ready for review or work-in-progress. | ||
A simple `[WIP]` (in any form) is a good indicator whether the PR is still being actively developed. | ||
1. Collaborate with the codeowners/reviewers to merge this in `master`. |
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,14 @@ | ||
## Environment variables | ||
|
||
You can configure how `goenv` operates with the following settings: | ||
|
||
name | default | description | ||
-----|---------|------------ | ||
`GOENV_VERSION` | | Specifies the Go version to be used.<br>Also see `goenv help shell`. | ||
`GOENV_ROOT` | `~/.goenv` | Defines the directory under which Go versions and shims reside.<br> Current value shown by `goenv root`. | ||
`GOENV_DEBUG` | | Outputs debug information.<br>Also as: `goenv --debug <subcommand>` | ||
`GOENV_HOOK_PATH` | | Colon-separated list of paths searched for goenv hooks. | ||
`GOENV_DIR` | `$PWD` | Directory to start searching for `.go-version` files. | ||
`GOENV_DISABLE_GOROOT` | `false` | Disables management of `GOROOT`.<br> Set this to `true` if you want to use a `GOROOT` that you export. | ||
`GOENV_DISABLE_GOPATH` | `false` | Disables management of `GOPATH`.<br> Set this to `true` if you want to use a `GOPATH` that you export. It's recommend that you use this (as set to `false`) to avoid mixing multiple versions of golang packages at `GOPATH` when using different versions of golang. See https://github.com/syndbg/goenv/issues/72#issuecomment-478011438 | ||
`GOENV_GOPATH_PREFIX` | `$HOME/go` | `GOPATH` prefix that's exported when `GOENV_DISABLE_GOPATH` is not `true`.<br> E.g in practice it can be `$HOME/go/1.12.0` if you currently use `1.12.0` version of go. |
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
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 |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
set -e | ||
[ -n "$GOENV_DEBUG" ] && set -x | ||
|
||
version="2.0.0beta7" | ||
version="2.0.0beta8" | ||
|
||
echo "goenv ${version}" |
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