https://github.com/mongodb/mongo-tools-common
https://github.com/mongodb/mongo-tools-common
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mongodb/mongo-tools-common
- Owner: mongodb
- License: other
- Created: 2018-09-17T19:41:38.000Z (over 6 years ago)
- Default Branch: v4.2
- Last Pushed: 2021-05-12T20:11:44.000Z (about 4 years ago)
- Last Synced: 2025-01-29T09:43:39.738Z (4 months ago)
- Language: Go
- Size: 3.48 MB
- Stars: 14
- Watchers: 38
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mongo-tools-common
===================================A collection of packages shared by the tools and mongomirror.
**Note**: This project has been deprecated as of [TOOLS-2802](https://jira.mongodb.org/browse/TOOLS-2802) and currently supports only the [mongo-tools/v4.2](https://github.com/mongodb/mongo-tools/tree/v4.2) branch for critical changes.
Using the mongo-tools-common packages
---------------To use the packages found here, use `mongo-tools` as a dependency instead.
First, add a `mongo-tools` dependency with the desired commit hash or tag in your `go.mod` file:
```
require github.com/mongodb/mongo-tools
```Then add the following import path with the desired subpackage in your Go file:
```
import "github.com/mongodb/mongo-tools/common/"
```Making changes to mongo-tools/v4.2
---------------If a change to `mongo-tools/v4.2` requires changes to `mongo-tools-common`, make the changes and create a pull request to merge them to `mongo-tools-common/v4.2`.
When merged, create a lightweight tag for `mongo-tools-common/v4.2` with appropriate minor/patch versions and push it:
```
git tag v2.X.x
git push upstream tag v2.X.x
```Then in the `Gopkg.toml` file for `mongo-tools/v4.2`, update the `mongo-tools-common` constraint:
```
[[constraint]]
name = "github.com/mongodb/mongo-tools-common"
version = "v2.X.x"
```Finally, revendor the dependency in `mongo-tools/v4.2` using `dep`:
```
dep ensure -update github.com/mongodb/mongo-tools-common
```