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

fix load issue with puppet filesystem and windows symlinks #87

Merged
merged 1 commit into from
Feb 13, 2015

Conversation

logicminds
Copy link
Contributor

  • previously the code was trying to load puppet/filesystem which does not exist
    or cannot be loaded. This causes windows symlink to raise an error when it shouldn't.
    Because the LoadError is caught the functionality of detecting if the puppet symlink code
    is available fails and the patch to make symlinks work on windows never gets executed.
    By just loading puppet we can still access the puppet/filesystem code and be able to use
    windows symlinks.

  * previously the code was trying to load puppet/filesystem which does not exist
    or cannot be loaded.  This causes windows symlink to raise an error when it shouldn't.
    By just loading puppet we can still access the puppet/filesystem code and be able to use
    windows symlinks.
@logicminds logicminds mentioned this pull request Jan 27, 2015
@logicminds
Copy link
Contributor Author

Furthermore, the current gem spec does not include puppet as a runtime dependency. I am not sure if this is needed because it is expected you to have puppet already installed. However, for testing procedures to work correctly we may need to add puppet as a development dependency.

@hunner
Copy link
Contributor

hunner commented Feb 12, 2015

What version of puppet are you using? puppet/file_system does appear to be available on all of my unit tests.

Puppet is not declared as a dependency because that would force the gem to be used rather than allowing native system packages.

@hunner
Copy link
Contributor

hunner commented Feb 12, 2015

Looking through git, it appears to be introduced in puppet 3.2.4

@cyberious
Copy link
Contributor

The whole reason this was in a begin is because it is available only post 3.2.4 and resolves issues on windows. If you want to add puppet I am fine but you can not remove that include.

@cyberious
Copy link
Contributor

Also there is no reason to load the whole puppet library if we know this function will only work if the 'puppet/file_system'

@cyberious
Copy link
Contributor

Found the same failure against 3.7.4. Merging PR, not sure what file_system is now depending on in core that is causing it to not load.

cyberious added a commit that referenced this pull request Feb 13, 2015
fix load issue with puppet filesystem and windows symlinks
@cyberious cyberious merged commit bdfa3eb into puppetlabs:master Feb 13, 2015
@chelnak chelnak added the bug label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants