Skip to content

R10K "does not return true" error for any git-sourced module in Puppetfile #91

@akomakom

Description

@akomakom

Describe the Bug

R10K documentation indicates that it is possible to specify git coordinates in the Puppetfile for each module. However, when attempting this, an error occurs and git checkout does not happen.

Expected Behavior

r10k should pull the requested git ref for the module

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install r10k as per documentation
  2. Create a Puppetfile, eg:
# I know that this is redundant, but it also doesn't work with forks
mod 'puppetlabs-java',
    :git => 'https://github.com/puppetlabs/puppetlabs-java.git'
    :branch => 'main'

or

# Specifying a hash also does not work
mod 'puppetlabs-java',
    :git => 'https://github.com/puppetlabs/puppetlabs-java.git'
    :commit => '9255a978bc362f21654b9f9edd9d3d94002208f8'  # Also does not work
  1. r10k puppetfile install
    ERROR -> :branch: "main" === :branch does not return true
    or
    ERROR -> :commit: "9255a978bc362f21654b9f9edd9d3d94002208f8" === :commit does not return true

Environment

  • r10k Version: tested with 5.0.0, 4.1.0 (installed at /opt/puppetlabs/puppet/bin)
  • Platform: Redhat 9.4
  • Puppet 8.10.0

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions