Skip to content

ENV MODULE_WORKING_DIR incompletely implemented #365

Open
@LTangaF

Description

@LTangaF

Describe the Bug

It seems from README.md that MODULE_WORKING_DIR is intended to be an alternate location for the modules in .fixtures.yml to be downloaded or linked into, but only cleanup routines use it.

Additionally, the default for MODULE_WORKING_DIR of spec/fixtures/work-dir is inconsistent with the description, which suggests that the default should probably be spec/fixtures/modules like is hard-coded in other places

Expected Behavior

Modules should be linked or checked out into MODULE_WORKING_DIR and are not

Steps to Reproduce

Steps to reproduce the behavior:

  1. Set MODULE_WORKING_DIR to an existent directory that you have write access to
  2. Run bundle exec rake spec_prep (after normal bundle update or bundle install
  3. Check contents of MODULE_WORKING_DIR and see that it is empty

Environment

  • Version 4.0.1
  • Debian 10.13

Additional Context

A proper working of MODULE_WORKING_DIR would allow for a fixtures directory for a company to be maintained separate from the individual modules' CI/CD pipelines, thereby giving opportunities for speeding up those pipelines by sharing in the cloning time costs of those fixtures rather than having all the modules in your ecosystem repeating that activity ad naseum.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions