-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure the folder layout for the ruby code to allow for easier management and testing later. This also paves way for open-sourcing the updater we use internally similar to the official one.
- Loading branch information
1 parent
aba9281
commit db8d3b7
Showing
22 changed files
with
177 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/azds.yaml | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/Dockerfile* | ||
/.core-bash_history | ||
/.env | ||
/.envrc | ||
/.git | ||
/.github | ||
/.vscode-server-insiders/ | ||
/.vscode-server/ | ||
/.vscode/ | ||
/dependabot-*.gem | ||
/dry-run | ||
/pkg | ||
/vendor | ||
/tmp | ||
**/.bundle | ||
**/coverage | ||
**/Gemfile.lock | ||
!updater/Gemfile.lock | ||
!updater/spec/fixtures/**/Gemfile.lock | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md | ||
!**/spec/fixtures/* | ||
git.store | ||
.DS_Store | ||
*.pyc | ||
.dockerignore | ||
Dockerfile* | ||
*.md | ||
CODEOWNERS |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/azds.yaml | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
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
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 @@ | ||
[submodule "script/dependabot-core"] | ||
path = script/dependabot-core | ||
[submodule "dependabot-core"] | ||
path = dependabot-core | ||
url = https://github.com/dependabot/dependabot-core.git |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# The tagged versions are currently slow (sometimes it takes months) | ||
# We temporarily switch to getting the gem from git. | ||
# When the changes to this repository are no longer many/major, | ||
# we can switch back to using the tagged versions. | ||
|
||
# FROM dependabot/dependabot-core:0.215.0 | ||
FROM dependabot/dependabot-core@sha256:3681373aeb07e29fdf30c7a03713195424636fd1cafd569c424a96af27d37735 | ||
|
||
ENV DEPENDABOT_HOME /home/dependabot | ||
WORKDIR ${DEPENDABOT_HOME} | ||
|
||
COPY --chown=dependabot:dependabot updater/Gemfile updater/Gemfile.lock dependabot-updater/ | ||
COPY --chown=dependabot:dependabot dependabot-core dependabot-core/ | ||
|
||
WORKDIR $DEPENDABOT_HOME/dependabot-updater | ||
|
||
RUN bundle config set --local path 'vendor' && \ | ||
bundle config set --local frozen 'true' && \ | ||
bundle config set --local without 'development' && \ | ||
bundle install | ||
|
||
# Project files are known to change more frequently than Gemfiles. | ||
# They are copied after installation of dependencies so that the | ||
# image layers that change less frequently are available for caching | ||
# and hence be reused in subsequent builds. | ||
# For more information: | ||
# https://docs.docker.com/develop/develop-images/build_enhancements/ | ||
# https://testdriven.io/blog/faster-ci-builds-with-docker-cache/ | ||
|
||
# Add project | ||
COPY --chown=dependabot:dependabot LICENSE $DEPENDABOT_HOME | ||
COPY --chown=dependabot:dependabot updater $DEPENDABOT_HOME/dependabot-updater | ||
|
||
WORKDIR $DEPENDABOT_HOME/dependabot-updater | ||
|
||
# This entrypoint exists to solve specific setup problems. | ||
# It is only used with the extension and directly on Docker. | ||
# Hosted version does not allow this. | ||
ENTRYPOINT ["bin/entrypoint.sh"] | ||
|
||
# Run update script | ||
CMD ["bundle", "exec", "ruby", "bin/update-script.rb"] |
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
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,12 +1,12 @@ | ||
[ | ||
{ | ||
"dependency-name": "Contoso.Utils", | ||
"patched-versions": [ | ||
"3.0.1" | ||
], | ||
"unaffected-versions": [], | ||
"affected-versions": [ | ||
"< 3.0.1" | ||
] | ||
} | ||
{ | ||
"dependency-name": "Contoso.Utils", | ||
"patched-versions": [ | ||
"3.0.1" | ||
], | ||
"unaffected-versions": [], | ||
"affected-versions": [ | ||
"< 3.0.1" | ||
] | ||
} | ||
] |
Submodule dependabot-core
updated
from 000000 to 4b000a
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/.bundle/ | ||
/spec/examples.txt | ||
/tmp/ |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "dependabot-bundler", path: "../dependabot-core/bundler" | ||
gem "dependabot-cargo", path: "../dependabot-core/cargo" | ||
gem "dependabot-common", path: "../dependabot-core/common" | ||
gem "dependabot-composer", path: "../dependabot-core/composer" | ||
gem "dependabot-docker", path: "../dependabot-core/docker" | ||
gem "dependabot-elm", path: "../dependabot-core/elm" | ||
gem "dependabot-github_actions", path: "../dependabot-core/github_actions" | ||
gem "dependabot-git_submodules", path: "../dependabot-core/git_submodules" | ||
gem "dependabot-go_modules", path: "../dependabot-core/go_modules" | ||
gem "dependabot-gradle", path: "../dependabot-core/gradle" | ||
gem "dependabot-hex", path: "../dependabot-core/hex" | ||
gem "dependabot-maven", path: "../dependabot-core/maven" | ||
gem "dependabot-npm_and_yarn", path: "../dependabot-core/npm_and_yarn" | ||
gem "dependabot-nuget", path: "../dependabot-core/nuget" | ||
gem "dependabot-pub", path: "../dependabot-core/pub" | ||
gem "dependabot-python", path: "../dependabot-core/python" | ||
gem "dependabot-terraform", path: "../dependabot-core/terraform" |
Oops, something went wrong.