| Hm, this seems familiar. We had issues that were caused by logic using an old style of resource initialization that caused a resource type to be loaded only in the old way, then when the new "right way" of loading is used it trips over the load that snuck under the radar. I think this could be PUP-8002 or PDB-3734 or a similar problem in another location. I don't think the checking of declarations in the wrong place would cause this problem - if that was they case there would be a specific error, or if such problems were present that those checks prevent that they would cause leakage between contexts (i.e. causing monkey patching at worst). Looking at the line in question that is reported as being in error is the init.pp of stdlib where the class stdlib is defined - it in turn includes definitions of additional stages. This leads me to suspect that something is going on inside the Stage datatype (maybe an "old style initialization" that has gone unnoticed. In any case, worth trying to reproduce under Puppet 6. |