Allow pdk validate to be run outside of a module's gem environment
              
              #1055
            
            
              
                Unanswered
              
          
                  
                    
                      sanfrancrisko
                    
                  
                
                  asked this question in
                Feature Request
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Originally reported in PDK-826 by @scotje :
It would be useful in some CI scenarios to be able to run the
validatechecks without PDK needing tobundle installfirst, instead utilizing PDK-cached copies of the various linting and static analysis gems to do the checks.The specific challenge is that if the module's Gemfile requires a gem with native extensions, PDK essentially requires a fully working build toolchain in order to run even static validations on the module, which seems unnecessary.
We should evaluate the use cases and it may be that we need to provide this mode as an option that people can opt-in or -out of depending on their requirements, or it may be that we can just make this change across the board once we are bundling multiple versions of the puppet gem with PDK.
Please also see this comment.
Acceptance Criteria:
Users can run
pdk validatesuccessfully regardless of what gems are specified in their module's Gemfile.Beta Was this translation helpful? Give feedback.
All reactions