Skip to content

Commit

Permalink
Merge pull request #74 from block/myron/fix-gemfile-for-dependabot
Browse files Browse the repository at this point in the history
Attempt to fix dependabot by allowing it to parse our `gemspec` calls.
  • Loading branch information
myronmarston authored Dec 27, 2024
2 parents 5e87d46 + 5793a84 commit 8457842
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,30 @@ end
# we can compare the the current directory to the repo root.
if repo_root == __dir__
# When we are at the root, we want to load the gemspecs for each ElasticGraph gem in the repository.
gems_in_this_repo.sort.each do |gem_name|
gemspec path: gem_name
end
# Note: dependabot can't handle `gemspec` calls that use a variable (e.g. `gemspec path: gem_name`)
# rather than a literal value, so this is an intentionally unrolled loop.
gemspec path: "elasticgraph"
gemspec path: "elasticgraph-admin"
gemspec path: "elasticgraph-admin_lambda"
gemspec path: "elasticgraph-apollo"
gemspec path: "elasticgraph-datastore_core"
gemspec path: "elasticgraph-elasticsearch"
gemspec path: "elasticgraph-graphql"
gemspec path: "elasticgraph-graphql_lambda"
gemspec path: "elasticgraph-health_check"
gemspec path: "elasticgraph-indexer"
gemspec path: "elasticgraph-indexer_autoscaler_lambda"
gemspec path: "elasticgraph-indexer_lambda"
gemspec path: "elasticgraph-json_schema"
gemspec path: "elasticgraph-lambda_support"
gemspec path: "elasticgraph-local"
gemspec path: "elasticgraph-opensearch"
gemspec path: "elasticgraph-query_interceptor"
gemspec path: "elasticgraph-query_registry"
gemspec path: "elasticgraph-rack"
gemspec path: "elasticgraph-schema_artifacts"
gemspec path: "elasticgraph-schema_definition"
gemspec path: "elasticgraph-support"
else
# Otherwise, we just load the local `.gemspec` file in the current directory.
gemspec
Expand Down

0 comments on commit 8457842

Please sign in to comment.