question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Managed dependencies from Git not updated

See original GitHub issue

As covered by previous issue: https://github.com/sbt/sbt/issues/335

Using SBT 0.13+ and Git dependencies:

  val project = RootProject(uri("git://github.com/...."))
  val root = Project("root", file(".")) dependsOn(project)

The project is checked into an SBT staging area but any subsequent changes to the dependency are not picked up by an ‘sbt update’.

The ticket above suggests this was fixed in 0.12 but there are also comments that this does not work in 0.13 indicating that this is a bug.

Currently it appears the only way to pull updated code is to delete the dependency from the staging area or manually do a git pull from within the staging area but running ‘sbt update’ should update all dependencies.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:14
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
doctappcommented, Aug 8, 2016

@Bladtman242 thanks, but stopped using it as it was just too complex to manage. We just publish locally instead.

0reactions
eed3si9ncommented, May 17, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Managed dependencies not updated #335 - sbt/sbt - GitHub
Another workaround is to identify which project needs updating and then do the "git pull ..." in the appropriate staging subdir manually.
Read more >
Git and Project Dependencies | Atlassian Git Tutorial
Dependencies are an important aspect of software development. Allows you to manage the versions of other libraries used by your code. Read and...
Read more >
Managing software project dependencies with git submodules
Now you can track and update dependency projects independent of your main source tree. One thing to note is all your dependencies need...
Read more >
Managing Dependencies with Git and bonus advance concepts
Now you can track and update dependencies project independent of your main source tree. One thing to note is all your dependencies need...
Read more >
Learning the Basics - Gradle User Manual
Gradle has built-in support for dependency management and lives up to the task ... A build does not need to declare the local...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found