Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependabot config #304

Merged
merged 4 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
229 changes: 157 additions & 72 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,160 @@

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/detectors/aws" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/detectors/gcp" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/tools" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/exporters/metric/dogstatsd" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/exporters/metric/datadog" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/emicklei/go-restful" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/gin-gonic/gin" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/gorilla/mux" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/labstack/echo" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/go.mongodb.org/mongo-driver" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/google.golang.org/grpc" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/gopkg.in/macaron.v1" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/runtime" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/Shopify/sarama" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/net/http" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/net/http/httptrace" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/instrumentation/github.com/bradfitz/gomemcache" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/detectors/aws"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/detectors/gcp"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/exporters/metric/cortex"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/exporters/metric/cortex/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/exporters/metric/cortex/utils"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/exporters/metric/datadog"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/exporters/metric/dogstatsd"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/astaxie/beego"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/astaxie/beego/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/bradfitz/gomemcache"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/emicklei/go-restful"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/gin-gonic/gin"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/gocql/gocql"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/gocql/gocql/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/gorilla/mux"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/labstack/echo"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/Shopify/sarama"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/github.com/Shopify/sarama/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/go.mongodb.org/mongo-driver"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/google.golang.org/grpc"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/google.golang.org/grpc/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/gopkg.in/macaron.v1"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/host"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/net/http"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/net/http/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/net/http/httptrace"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/net/http/httptrace/example"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/instrumentation/runtime"
schedule:
interval: "weekly"
day: "sunday"
- package-ecosystem: "gomod"
directory: "/tools"
schedule:
interval: "weekly"
day: "sunday"
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $(TOOLS_DIR)/stringer: $(TOOLS_MOD_DIR)/go.mod $(TOOLS_MOD_DIR)/go.sum $(TOOLS_M
cd $(TOOLS_MOD_DIR) && \
go build -o $(TOOLS_DIR)/stringer golang.org/x/tools/cmd/stringer

precommit: license-check generate build lint test
precommit: dependabot-check license-check generate build lint test

.PHONY: test-with-coverage
test-with-coverage:
Expand Down Expand Up @@ -158,3 +158,16 @@ license-check:
echo "license header checking failed:"; echo "$${licRes}"; \
exit 1; \
fi

.PHONY: dependabot-check
dependabot-check:
@result=$$( \
for f in $$( find -type f -name go.mod -exec dirname {} \; | sed 's/^.\/\?/\//' ); \
do grep -q "$$f" .github/dependabot.yml \
|| echo "$$f"; \
done; \
); \
if [ -n "$$result" ]; then \
echo "missing go.mod dependabot check:"; echo "$$result"; \
exit 1; \
fi