sbt / sbt/sbt-git

not working on project with multiple git repos

Open
#97 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
355
Forks
104
Avg merge
1d 4h
Merged PRs (30d)
4

Description

considering a sbt multi project Root (project created using repo):

root/
     build.sbt
     a/
         .git/
          some_a_file
     b/
         .git/
         some_b_file

Since, gitReader is defined under ThisBuild. All the projects share the same gitReader , which's baseDirectory is root/. And it can not find the valid git repo for project a, neither for b.

The same for a project constructed with multiple sub project using git submodule add <sub_project_repo_url> sub_project_name

Contributor guide

No contributing guide indexed for this repository

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 the gitReader defined under ThisBuild and how it uses baseDirectory for subprojects. Reproduce the issue with the shown multi-repository layout and with git submodules; done means each project finds and reads its own valid Git repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, scala
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.