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
specifying the environment variable PUPPET_GEM_VERSION does not work #635
Comments
|
Thanks for explaining how to achieve this! Please re-open though as specifying this environment variable should not cause pdk to not work. Would expect that pdk would ignore it and continue on or document that specifying this will break things. |
@ghoneycutt can you clarify what errors you are receiving in this situation? PDK should be ignoring the exported value of (Edit: I tried and was unable to replicate this issue in my local environment.) |
I could not reproduce using the steps above with PDK 1.9.1. Though I was able to get this error when running
|
This makes adoption hard as I normally export that variable with the current work flow that uses rvm and bundler. When migrating to PDK I have to remember to unset it. A better user experience would be PDK telling me that it is set and that it shouldn't be and that it's going to ignore it and tell me to use |
I have created https://tickets.puppetlabs.com/browse/PDK-1337 to track this in JIRA. |
Fixed in #671 |
Describe the bug
The Gemfile allows for specifying the puppet version with the environment variable
PUPPET_GEM_VERSION
. When this is done, errors happens where I would expect no errors and for PDK to use the version specified.To Reproduce
export PUPPET_GEM_VERSION=6.3.0 pdk validate
Expected behavior
For PDK to use Puppet 6.3.0 and for the tests to succeed.
Additional context
Your PDK installation method: native packages
Your PDK version: 1.9.0
Your operating system / platform: MacOS Mojave
The text was updated successfully, but these errors were encountered: