Hello,
path to be cached is invalid if env variable BUNDLE_GEMFILE leads to subdirectory
example repo: https://github.com/ErwinM/acts_as_tenant/blob/master/.github/workflows/ci.yml
gemfiles that are used as matrix, gemfiles are located in gemfiles subdirectory. Bundler installs gems in ./gemfiles/vendor/bundle, but path to gems is hardcoded to ./vendor/bundle in cache function in ruby/setup-ruby.
example of installation in ./gemfiles/vendor/bundle - https://github.com/ErwinM/acts_as_tenant/runs/1551693162#step:4:156
As quick-fix I've set BUNDLE_PATH_RELATIVE_TO_CWD, now gems are installed in ./vendor/bundle - ErwinM/acts_as_tenant#245
But maybe it will be better to change ruby/setup-ruby not to use hardcoded path or set path_relative_to_cwd as bundler's config by default or add notice to readme
Thanks
Hello,
path to be cached is invalid if env variable
BUNDLE_GEMFILEleads to subdirectoryexample repo: https://github.com/ErwinM/acts_as_tenant/blob/master/.github/workflows/ci.yml
gemfiles that are used as matrix, gemfiles are located in
gemfilessubdirectory. Bundler installs gems in./gemfiles/vendor/bundle, but path to gems is hardcoded to./vendor/bundlein cache function inruby/setup-ruby.example of installation in
./gemfiles/vendor/bundle- https://github.com/ErwinM/acts_as_tenant/runs/1551693162#step:4:156As quick-fix I've set
BUNDLE_PATH_RELATIVE_TO_CWD, now gems are installed in./vendor/bundle- ErwinM/acts_as_tenant#245But maybe it will be better to change
ruby/setup-rubynot to use hardcoded path or setpath_relative_to_cwdas bundler's config by default or add notice to readmeThanks