Skip to content

bundler-cache doesn't work with different working-directories. #350

@fsimonis

Description

@fsimonis

Using the caching functionality of the action various times using different working-directories leads to incorrectly restored caches.

First workflow runs and caches website/vendor/bundle

- uses: ruby/setup-ruby@v1
  with:
    bundler-cache: true
    working-directory: website

Second workflow runs and restores the cache:

- uses: ruby/setup-ruby@v1
  with:
    bundler-cache: true

Then the cache gets restored in website/vendor/bundle instead of vendor/bundle.
bundle install runs normally as it is configured to use vendor/bundle

Example of the second workflow. jekyll build fails here as it picks up files in website/vendor/bundle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions