Skip to content

Fails if git config item core.fsmonitor is enabled #347

@timja

Description

@timja

Noticed in: Azure/terraform-azurerm-avm-res-dbforpostgresql-flexibleserver#72

I have git fsmonitor enabled on my machine to improve performance of git.

./avm pr-check fails with it enabled:

lstat /src/.git/fsmonitor--daemon.ipc: no such file or directory

Relevant log:

[15:02:44.162] INFO: Displaying results...
✗ PR Check (exit code: -1)
  ✓ Check for uncommitted changes
  ✓ install terraform
  ✗ linting (exit code: -1)
    ✗ Check docs (exit code: -1)
      ✗ Copy to temp (exit code: -1)
        ➜ Error: lstat /src/.git/fsmonitor--daemon.ipc: no such file or directory
      ~ Generate
        ➜ Error: skip execution due to previous error
      ~ Check for docs changes
        ➜ Error: skip execution due to previous error
    ✗ check grept (exit code: -1)
      ✗ Copy to temp (exit code: -1)
        ➜ Error: lstat /src/.git/fsmonitor--daemon.ipc: no such file or directory
      ~ Grept apply
        ➜ Error: skip execution due to previous error
      ~ Check for grept changes
        ➜ Error: skip execution due to previous error
    ✗ tflint (exit code: -1)
      ✗ Copy current working directory to temp (exit code: -1)
        ➜ Error: lstat /src/.git/fsmonitor--daemon.ipc: no such file or directory
      ~ download configs
        ➜ Error: skip execution due to previous error
      ~ overrides
        ➜ Error: skip execution due to previous error
      ~ clean terraform
        ➜ Error: skip execution due to previous error

To work around it I:

  • Temporarily disabled it in my git config file
  • Stopped all running daemons:pkill git
  • Removed the local folder that it was tripping up on: rm -rf .git/fsmonitor--daemon*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions