Skip to content

Syntax error #624

Open
Open
@gdelhumeau

Description

@gdelhumeau

Describe the Bug

I cannot clone a repository.

Expected Behavior

It should clone the repository.

Steps to Reproduce

This is my manifest:

vcsrepo { '/etc/test/repo':
    ensure   => present,
    provider => git,
    source   => 'https://someUrl/repo.git',
    require => [ File['/etc/test'], Package['git'] ]
  }

I get the following error, when I execute /opt/puppetlabs/puppet/bin/puppet agent -t on the agent:

2023-09-28 17:02:15.134363 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not autoload puppet/provider/vcsrepo/cvs: /opt/puppetlabs/puppet/cache/lib/puppet/provider/vcsrepo/cvs.rb:77: syntax error, unexpected ']'
        @rev = contents[1..]
                           ^
Error: Could not autoload puppet/type/vcsrepo: Could not autoload puppet/provider/vcsrepo/cvs: /opt/puppetlabs/puppet/cache/lib/puppet/provider/vcsrepo/cvs.rb:77: syntax error, unexpected ']'
        @rev = contents[1..]
                           ^
Error: Failed to apply catalog: Could not autoload puppet/type/vcsrepo: Could not autoload puppet/provider/vcsrepo/cvs: /opt/puppetlabs/puppet/cache/lib/puppet/provider/vcsrepo/cvs.rb:77: syntax error, unexpected ']'
        @rev = contents[1..]

Environment (on the agent)

  • Version: Puppet v6.28.0
  • Platform: Debian GNU/Linux 11 (bullseye)

Environment (on the server)

  • Version: Puppet v7.25.0
  • Platform: Debian GNU/Linux 11 (bullseye)
  • VCSRepo version: 6.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions