-
Notifications
You must be signed in to change notification settings - Fork 56
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
generateGitProperties
fails when Git's core.fsmonitor
is enabled
#230
Comments
generateGitProperties fails
when Git's core.fsmonitor
is enabledgenerateGitProperties
fails when Git's core.fsmonitor
is enabled
@n0mer Is there a way to exclude |
I have worked around this by ditching this plugin and using an Exec task with a bash script instead. Bash script:
Gradle task:
|
Temporary solution: This issue is due to the addition of the fsmonitor daemon in git, which can be disabled using the following method.
|
Alternatively you can also disable state tracking for tasks.withType(com.gorylenko.GenerateGitPropertiesTask::class.java) {
// https://github.com/n0mer/gradle-git-properties/issues/230
doNotTrackState(".git/fsmonitor--daemon.ipc: not a regular file")
} |
The
generateGitProperties
task will fail if.git/config
containscore.fsmonitor = true
:The error is:
Should be solved by ignoring
.git/fsmonitor--daemon.ipc
(or generally all sockets) by default.The text was updated successfully, but these errors were encountered: