[ https://issues.apache.org/jira/browse/KAFKA-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998996#comment-14998996 ]
ASF GitHub Bot commented on KAFKA-2797: --------------------------------------- GitHub user ewencp opened a pull request: https://github.com/apache/kafka/pull/485 KAFKA-2797: Only run rat when in the .git repository since it require s the .gitignore to generate the list of files to ignore You can merge this pull request into a Git repository by running: $ git pull https://github.com/ewencp/kafka kafka-2797-disable-rat-when-git-missing Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/485.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #485 ---- commit 79c6cac66644b458eff8141e13dacd0b859f5c3c Author: Ewen Cheslack-Postava <m...@ewencp.org> Date: 2015-11-10T17:33:45Z KAFKA-2797: Only run rat when in the .git repository since it requires the .gitignore to generate the list of files to ignore ---- > Release artifact expects a git repository for the release audit tool (RAT) > -------------------------------------------------------------------------- > > Key: KAFKA-2797 > URL: https://issues.apache.org/jira/browse/KAFKA-2797 > Project: Kafka > Issue Type: Bug > Components: build > Affects Versions: 0.9.0.0 > Reporter: Flavio Junqueira > Priority: Blocker > Fix For: 0.9.0.0 > > > When running gradle on the RC0 for 0.9, we get an error because the build > expects to find a git repo here: > {noformat} > line 68 of build.gradle: def repo = Grgit.open(project.file('.')) > {noformat} > and we get this error message: > {noformat} > FAILURE: Build failed with an exception. > * Where: > Build file 'kafka-0.9.0.0-src/build.gradle' line: 68 > * What went wrong: > A problem occurred evaluating root project 'kafka-0.9.0.0-src'. > > repository not found: kafka-0.9.0.0-src > {noformat} > The definitions for rat make sense when working on a git branch, but not for > the release artifact. One way around this is to disable rat by commenting out > the corresponding lines, but that isn't what the README file says. -- This message was sent by Atlassian JIRA (v6.3.4#6332)