Skip to content

Commit

Permalink
fix gendependabot (#2956)
Browse files Browse the repository at this point in the history
This was changed in aa3a2c5 which fixed Ubuntu but broke Mac.
  • Loading branch information
jrcamp authored Apr 1, 2021
1 parent 92c8edd commit a835321
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# File generated by "make gendependabot"; DO NOT EDIT.

version: 2
updates:
- package-ecosystem: "gomod"
Expand Down Expand Up @@ -242,6 +241,10 @@ updates:
directory: "/receiver/filelogreceiver"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/receiver/fluentforwardreceiver"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/receiver/jmxreceiver"
schedule:
Expand Down
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,20 @@ DEPENDABOT_PATH=".github/dependabot.yml"
.PHONY: gendependabot
gendependabot:
@echo "Recreate dependabot.yml file"
@echo -e "# File generated by \"make gendependabot\"; DO NOT EDIT.\n" > ${DEPENDABOT_PATH}
@echo "# File generated by \"make gendependabot\"; DO NOT EDIT." > ${DEPENDABOT_PATH}
@echo "version: 2" >> ${DEPENDABOT_PATH}
@echo "updates:" >> ${DEPENDABOT_PATH}
@echo "Add entry for \"/\""
@echo -e " - package-ecosystem: \"gomod\"\n directory: \"/\"\n schedule:\n interval: \"weekly\"" >> ${DEPENDABOT_PATH}
@echo " - package-ecosystem: \"gomod\"" >> ${DEPENDABOT_PATH}
@echo " directory: \"/\"" >> ${DEPENDABOT_PATH}
@echo " schedule:" >> ${DEPENDABOT_PATH}
@echo " interval: \"weekly\"" >> ${DEPENDABOT_PATH}
@set -e; for dir in $(ALL_MODULES); do \
(echo "Add entry for \"$${dir:1}\"" && \
echo -e " - package-ecosystem: \"gomod\"\n directory: \"$${dir:1}\"\n schedule:\n interval: \"weekly\"" >> ${DEPENDABOT_PATH}); \
echo "Add entry for \"$${dir:1}\""; \
echo " - package-ecosystem: \"gomod\"" >> ${DEPENDABOT_PATH}; \
echo " directory: \"$${dir:1}\"" >> ${DEPENDABOT_PATH}; \
echo " schedule:" >> ${DEPENDABOT_PATH}; \
echo " interval: \"weekly\"" >> ${DEPENDABOT_PATH}; \
done

GOMODULES = $(ALL_MODULES) $(PWD)
Expand Down

0 comments on commit a835321

Please sign in to comment.