Skip to content

Commit

Permalink
[DO NOT MERGE] Dependabot - Add vendoring for Go modules (github#15835)
Browse files Browse the repository at this point in the history
* add vendoring got Go modules

* more updates

* Apply suggestions from code review

Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>

Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
  • Loading branch information
mchammer01 and shati-patel authored Oct 20, 2020
1 parent 3b23dc0 commit df71fca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,6 @@ updates:

Use the `vendor` option to tell {% data variables.product.prodname_dependabot_short %} to vendor dependencies when updating them.

{% note %}

Currently, {% data variables.product.prodname_dependabot_short %} only supports vendoring dependencies for Bundler.

{% endnote %}

```yaml
# Configure version updates for both dependencies defined in manifests and vendored dependencies
Expand All @@ -565,7 +559,13 @@ updates:
interval: "weekly"
```

{% data variables.product.prodname_dependabot_short %} only updates the vendored dependencies located in specific directories in a repository. For Bundler, the dependencies must be in the _vendor/cache_ directory. Other file paths are not supported. For more information, see the [`bundle cache` documentation](https://bundler.io/man/bundle-cache.1.html).
{% data variables.product.prodname_dependabot_short %} only updates the vendored dependencies located in specific directories in a repository.

| Package manager | Required file path for vendored dependencies | More information |
|------------------|-------------------------------|--------|
| `bundler` | The dependencies must be in the _vendor/cache_ directory.</br>Other file paths are not supported. | [`bundle cache` documentation](https://bundler.io/man/bundle-cache.1.html) |
| `gomod` | No path requirement (dependencies are usually located in the _vendor_ directory) | [`go mod vendor` documentation](https://golang.org/ref/mod#go-mod-vendor) |


### `versioning-strategy`

Expand Down
2 changes: 1 addition & 1 deletion data/reusables/dependabot/supported-package-managers.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Docker: `docker` |
Elm: `elm` |
git submodule: `gitsubmodule` |
GitHub Actions: `github-actions` |
Go modules: `gomod` |
Go modules: `gomod` | **X**
Gradle: `gradle` |
Maven: `maven` |
Mix: `mix` |
Expand Down

0 comments on commit df71fca

Please sign in to comment.