-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Re-allow relative and absolute paths for moduledir & puppetfile
Previous to recent refactors an API user could provide either an absolute or relative moduledir path, as well as an absolute puppetfile_path or relative puppetfile_name, when resolving Puppetfiles. The recent refactor required consumers to either pass absolute paths or allow defaults rooted in the basedir, but disallowed passing relative paths that would then be rooted in the basedir. This commit returns that ability, as well as refactoring the internal path joining and cleaning to be shared by all consumers of a file system path. This will change the the internal storage of basedir, moduledir, and puppetfile to use a "cleaned" path stripped of extra slashes and dots. However, this cleaned representation is what we would compare to install_paths and display to users in error messages, so it should be a change that does not affect any behavior.
- Loading branch information
1 parent
6cf4c71
commit a153c84
Showing
2 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters