Skip to content
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

Change in v5.2.0 causes "Could not evaluate: undefined method `dir' for nil:NilClass" on Windows #559

Open
aaronhilton0 opened this issue Jul 18, 2022 · 5 comments

Comments

@aaronhilton0
Copy link

Describe the Bug

Since the release of v5.2.0, when using the vcsrepo module on Windows customer gets the error "Could not evaluate: undefined method `dir' for nil:NilClass" on every run. Problem does not occur with v5.1.0 of this module.

Expected Behavior

Repository should be handled without error

Steps to Reproduce

Error is consistent using module as follows

class profile::vcsrepotest {
  vcsrepo { "C:/admkrdev.ide/Jobs":
    ensure   => latest,
    provider => git,
    source   => '[email protected]:aaronhilton0/control-repo.git',
    identity => 'C:/keys/id_rsa',
  }
}

Environment

  • Windows Server 2019
  • Puppet Enterprise 2021.5

Additional Context

Currently affecting customer on ticket 48952

@pmcmaw
Copy link

pmcmaw commented Jul 27, 2022

For future reference, this is being listed as a feature and not a bug as currently this module does not currently support Windows.

@krische
Copy link

krische commented Sep 13, 2022

Is it still easy enough to fix this? I've been using this module on Windows for years without any problems until 5.2.0.

@pmcmaw
Copy link

pmcmaw commented Sep 13, 2022

Unfortunately it isn't something we would be planning on looking at.
However this module is open source and we would be more than happy to accept a PR if it is something you would be interested in.

jameslikeslinux added a commit to jameslikeslinux/puppet-nest that referenced this issue Nov 14, 2022
vcsrepo doesn't officially support Windows, but I make it work on
Cygwin with a series of wrappers and hacks.

puppetlabs/puppetlabs-vcsrepo#553 changes the
way home directories are evaluated and breaks on Windows as described at
puppetlabs/puppetlabs-vcsrepo#559.
@github-actions
Copy link

Hello! 👋

This issue has been open for a while and has had no recent activity. We've labelled it with attention-needed so that we can get a clear view of which issues need our attention.

If you are waiting on a response from us we will try and address your comments on a future Community Day.

Alternatively, if it is no longer relevant to you please close the issue with a comment.

@kenyon
Copy link

kenyon commented Dec 13, 2022

Not stale, there's an open pull request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants