The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:
Facter util loader loads files from everywhere in $LOAD_PATH, makes tests fail
|Keywords:||Affected Facter version:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
I’m not entirely sure if this is a problem with implementation also. However, for testing it means that if you have a different version of facter installed on the machine than the version of the code you want to test, the test may end up running the wrong code.
search_path and load_all combine to load every file in the load path, which may be facter running from source AND facter installed in whatever directory the load path normally looks in.
#3 Updated by Paul Berry over 5 years ago
Nick and I ran into this while working on the demo machine for the 11/17 iteration. The home directory of the demo machine contained a dir called “facter” which was the source code to facter. This made errors occur if you tried to run “facter” from the home directory.
#4 Updated by Paul Nasrat over 5 years ago
Yeah it’s well known hence the comment in ArchitectureForTwoDotOh
- Facts shouldn’t be in lib/ (should probably be /var somewhere)
Changing this in 1.x would break a lot of peoples setup, sadly it tends to bite developers/CI systems worst, along with a few cases of multiple installs.