You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that the unusual versioning of the DSC modules is confusing the depedency version check as I am getting the follwowing error with the SCE_Windows module.
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state': Unable to satisfy the following requirements: (Molinillo::VersionConflict)
dsc-networkingdsc =9.0.0-0-7 required by Puppetfile
dsc-networkingdsc >= 8.1.0-0-1 < 10.0.0 required by Forge puppetlabs-sce_windows-2.0.0
Expected Behavior
Check should pass
Steps to Reproduce
Steps to reproduce the behavior:
Add sce_windows module and its dependencies to a Puppetfile
Environment
Running the check on a RHEL 9 server
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Here is the script I'm using, this is setup for CD4PE
#!/opt/puppetlabs/puppet/bin/rubyrepo_dir=ENV['REPO_DIR']puppetfile_path="#{repo_dir}/Puppetfile"# Parse the Puppetfile into an object modelcontent=File.open(puppetfile_path,'rb'){ |f| f.read}require'puppetfile-resolver'require'puppetfile-resolver/puppetfile/parser/r10k_eval'puppetfile= ::PuppetfileResolver::Puppetfile::Parser::R10KEval.parse(content)# Make sure the Puppetfile is validunlesspuppetfile.valid?puts'Puppetfile is not valid'puppetfile.validation_errors.each{ |err| putserr}exit1end# Create the resolver# - Use the document we just parsed (puppetfile)# - Don't restrict by Puppet version (nil)resolver=PuppetfileResolver::Resolver.new(puppetfile,nil)# Configure the resolvercache=nil# Use the default inmemory cacheui=nil# Don't output any informationmodule_paths=[]# List of paths to search for modules on the local filesystemallow_missing_modules=true# Allow missing dependencies to be resolvedopts={cache: cache,ui: ui,module_paths: module_paths,allow_missing_modules: allow_missing_modules}# Resolveresult=resolver.resolve(opts)# Output resolution validation errorsresult.validation_errors.each{ |err| puts"Resolution Validation Error: #{err}\n"}
Describe the Bug
I believe that the unusual versioning of the DSC modules is confusing the depedency version check as I am getting the follwowing error with the SCE_Windows module.
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state': Unable to satisfy the following requirements: (Molinillo::VersionConflict)
dsc-networkingdsc =9.0.0-0-7
required byPuppetfile
dsc-networkingdsc >= 8.1.0-0-1 < 10.0.0
required byForge puppetlabs-sce_windows-2.0.0
Expected Behavior
Check should pass
Steps to Reproduce
Steps to reproduce the behavior:
Add sce_windows module and its dependencies to a Puppetfile
Environment
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: