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
Puppet Plans are not parsed correctly #128
Comments
As discussed in chat, the crux of the issue here is that we rely on the Puppet Plan folder structure conventions (all plans in a top level plans directory) and metadata.json being present (i.e. that this is a module) defined by the Puppet Plans docs to detect we need to enable the Puppet Plans parser. If that is not the case, we don't enable the parser |
Based on above, I think an addition needs to be made for the plans directory being part of a Bolt project as defined at https://puppet.com/docs/bolt/latest/bolt_project_directories.html The project pictured above corresponds to "Embedded project directory" in the linked docs:
Note that Bolt projects do not need a |
FWIW, this was our original source: https://puppet.com/docs/bolt/latest/writing_plans.html#concept-4485. Apparently things have changed |
That does explain a bit :) |
Transferred issue to PES as this is not a highlighting issue |
Previously Puppet Plan files had to exist within a Module however with the Boltdir being introduced this is no longer true. This commit updates the detection to remove the module metadata.json requirement and use the pathname instead.
Previously the plan detection method was called module_plan_file? however as the module part is no longer required, the name is now plan_file?.
Previously Puppet Plan files had to exist within a Module however with the Boltdir being introduced this is no longer true. This commit updates the detection to remove the module metadata.json requirement and use the pathname instead.
Previously the plan detection method was called module_plan_file? however as the module part is no longer required, the name is now plan_file?.
What Versions are you running?
Editor Name and Version: VS Code 1.33.1
Extension: 0.18.0
PDK: 1.10.0 (using embedded Puppet from this)
Puppet: 6.4.0
Document: (Include the whole document)
What You Are Seeing?
Lots of red that shouldn't be there
What is Expected?
No red when code is correct.
How Did You Get This To Happen? (Steps to Reproduce)
Open any plan with a
TargetSpec
definedThe text was updated successfully, but these errors were encountered: