Issue #13055 has been updated by Josh Cooper.
Status changed from Needs More Information to Accepted
Assignee changed from Nigel Kersten to Josh Cooper
Target version set to 2.7.x
Affected Puppet version set to 2.7.12
So I can reproduce now. In C:\Users\albert\modules\foo\manifests\init.pp I have:
<pre>
class foo {
file { 'c:\foo.txt':
ensure => file,
}
}
</pre>
Running the following:
<pre>
C:\Users\albert>puppet apply --modulepath c:\Users\albert\modules -e 'include
foo' --debug
debug: importing 'c:\Users\albert\modules/foo/manifests/init.pp' in environment
production
debug: importing 'c:/Users/albert/modules/foo/manifests/init.pp' in environment
production
debug: Automatically imported foo from foo into production
...
Duplicate declaration: File[c:\foo.txt] is already declared in file
c:\Users\albert\modules/foo/manifests/init.pp at line 4; cannot redeclare at
c:/Users/albert/modules/foo/manifests/init.pp:4 on node
win-qp47voha2p4.localdomain
</pre>
Note the mismatched `c:\users\albert\` and `c:/users/albert/` during import
----------------------------------------
Bug #13055: On Windows, the autoloader gets confused by backslashes in a
modulepath
https://projects.puppetlabs.com/issues/13055#change-58576
Author: Nigel Kersten
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.x
Affected Puppet version: 2.7.12
Keywords: windows
Branch:
(Feel free to bounce back to me if I haven't given enough data)
<pre>
puppet apply --modulepath="Z:\path\to\my\modules" "Z:\path\to\my\site.pp"
</pre>
When you use backslashes, puppet tries to parse the modules twice, and gets all
confused with duplicate resource definitions.
Switching the modulepath to `Z:/path/to/my/modules` worked as a workaround.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.