forked from thanos-io/thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Go 1.12 & replace dep by go mod (thanos-io#868)
* Switch to Go 1.11 & replace dep by go mod Signed-off-by: Sylvain Rabot <[email protected]> * Use Go 1.12 Signed-off-by: Sylvain Rabot <[email protected]> * Add a few lines about go mod in CONTRIBUTING.md Shamelessly copied from https://github.com/prometheus/prometheus/blob/master/CONTRIBUTING.md#dependency-management Signed-off-by: Sylvain Rabot <[email protected]> * feat: add a vendoring check Signed-off-by: Sylvain Rabot <[email protected]> * fix: specify the need for git & bzr to be installed Signed-off-by: Sylvain Rabot <[email protected]> * Remove unneeded go mod vendor Signed-off-by: Sylvain Rabot <[email protected]> * Fix formatting Signed-off-by: Sylvain Rabot <[email protected]> * Check that git and bzr are present Signed-off-by: Sylvain Rabot <[email protected]> * Add bzr download link Signed-off-by: Sylvain Rabot <[email protected]>
- Loading branch information
Showing
24 changed files
with
675 additions
and
1,867 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(github.com/improbable-eng/thanos/vendor/github.com/go-kit/kit/log.Logger).Log | ||
(github.com/go-kit/kit/log.Logger).Log | ||
fmt.Fprintln | ||
fmt.Fprint |
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,8 +1,6 @@ | ||
/prometheus | ||
/thanos | ||
vendor/ | ||
.dep-finished | ||
/.vendor-new | ||
|
||
# Ignore minikube setup working dirs. | ||
kube/bin | ||
|
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 |
---|---|---|
|
@@ -65,3 +65,27 @@ CI runs GCS and inmem tests only for now. Not having these variables will produc | |
7. You may merge the Pull Request in once you have the sign-off of at least one developers with write access, or if you | ||
do not have permission to do that, you may request the second reviewer to merge it for you. | ||
8. If you feel like your PR waits too long for a review, feel free to ping [`#thanos-dev`](https://join.slack.com/t/improbable-eng/shared_invite/enQtMzQ1ODcyMzQ5MjM4LWY5ZWZmNGM2ODc5MmViNmQ3ZTA3ZTY3NzQwOTBlMTkzZmIxZTIxODk0OWU3YjZhNWVlNDU3MDlkZGViZjhkMjc) channel on our slack for review! | ||
|
||
## Dependency management | ||
|
||
The Thanos project uses [Go modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) to manage dependencies on external packages. This requires a working Go environment with version 1.11 or greater, git and [bzr](http://wiki.bazaar.canonical.com/Download) installed. | ||
|
||
To add or update a new dependency, use the `go get` command: | ||
|
||
```bash | ||
# Pick the latest tagged release. | ||
go get example.com/some/module/pkg | ||
|
||
# Pick a specific version. | ||
go get example.com/some/module/[email protected] | ||
``` | ||
|
||
Tidy up the `go.mod` and `go.sum` files: | ||
|
||
```bash | ||
make go-mod-tidy | ||
git add go.mod go.sum | ||
git commit | ||
``` | ||
|
||
You have to commit the changes to `go.mod` and `go.sum` before submitting the pull request. |
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
Oops, something went wrong.