Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-4394) Make the module_working_dir configurable #175

Conversation

glennsarti
Copy link
Contributor

Previously the module_work_dir used when installing modules fixtures via the
forge used a hardcoded relative path inside of the module. However during CI
testing this path gets very long and in some instances on Windows, the fixtures
fail to install. This commit adds support for an environment variable called
MODULE_WORKING_DIR which can be set and will instruct the helper to use this
user set directory. This commit preserves converting the path into a Puppet
compatible string due to PUP-4884. If the environment variable is not set the
current default of spec/fixtures/work-dir is used.

Previously the module_work_dir used when installing modules fixtures via the
forge used a hardcoded relative path inside of the module.  However during CI
testing this path gets very long and in some instances on Windows, the fixtures
fail to install.  This commit adds support for an environment variable called
`MODULE_WORKING_DIR` which can be set and will instruct the helper to use this
user set directory.  This commit preserves converting the path into a Puppet
compatible string due to PUP-4884.  If the environment variable is not set the
current default of `spec/fixtures/work-dir` is used.
@eputnam eputnam merged commit 355162f into puppetlabs:master Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants