mapbox / mapbox/mapbox-navigation-android-examples

No .git directory found!

Open
#105 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Kotlin
Stars
65
Forks
56
Avg merge
1d 4h
Merged PRs (30d)
2

Description

Error build gradle : Caused by: java.lang.IllegalStateException: No .git directory found!
In script-git-version.gradle
```
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.ajoberstar.grgit:grgit-core:4.1.1'
}
}

import org.ajoberstar.grgit.Grgit

ext {
git = Grgit.open(currentDir: projectDir)
gitCommitHash = git.head().abbreviatedId
gitNumberOfCommits = git.log().size()
gitTagDescription = git.describe(tags: true)
git.close()
}
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting script-git-version.gradle and reproducing the Gradle build in the reported checkout. Determine why Grgit.open requires a .git directory, then verify that the project builds successfully in the affected environment without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.