Skip to content

Commit

Permalink
Merge pull request #82 from block/myron/dependabot-fixes/step8
Browse files Browse the repository at this point in the history
Change how we determine the `repo_root` in `Gemfile`.
  • Loading branch information
myronmarston authored Jan 1, 2025
2 parents bc9ab19 + bee8ca7 commit 83be56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ group :site do
end

# Since this file gets symlinked both at the repo root and into each Gem directory, we have
# to dynamically detect the repo root, by looking for the `.git` directory.
repo_root = ::Pathname.new(::Dir.pwd).ascend.find { |dir| ::Dir.exist?("#{dir}/.git") }.to_s
# to dynamically detect the repo root, by looking for a file that only exists at the root.
repo_root = ::Pathname.new(::Dir.pwd).ascend.find { |dir| ::File.exist?("#{dir}/CODE_OF_CONDUCT.md") }.to_s

# `tmp` and `log` are git-ignored but many of our build tasks and scripts expect them to exist.
# We create them here since `Gemfile` evaluation happens before anything else.
Expand Down

0 comments on commit 83be56f

Please sign in to comment.