chipsalliance / chipsalliance/rocket-chip

struggled to resolve dependencies, finally done

Open
#1,960 0 comments 0 reactions 0 assignees View on GitHub
build: scala/chisel/firrtl proposal
Dominant language
Scala
Stars
3.9k
Forks
1.3k
Avg merge
5d 13m
Merged PRs (30d)
1

Description

I struggled a lot trying to resolve the dependencies when running sbt in the rocket-chip directory. Hopefully you can improve the README to save others' time :)

This is what I did:

(1) Create ~/.sbt/repositories file as:
[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
sbt-plugins-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/\[artifact\](-[classifier]).[ext]
typesafe-sbt-plugins: http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/\[artifact\](-[classifier]).[ext]
central: http://repo1.maven.org/maven2/

(2) Add these two options to /usr/local/etc/sbtopts (on Mac, sbt installed by brew, YMMV):
-Dsbt.override.build.repos=true
-Dsbt.repository.config=~/.sbt/repositories

Contributor guide

Open the contributing guide

Research direction

Start with the README covering setup in the rocket-chip directory and compare its dependency instructions with the reported sbt workflow. Check whether ~/.sbt/repositories and /usr/local/etc/sbtopts are still relevant, then update the README so a fresh setup can resolve dependencies without the reported struggle.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.