1

I want to update a dependency of my project to its most recent state, (latest commit of its master branch), which is not released yet.

More specifically, the project I want to depend is using git and hosted public on GitHub. I use lein, which stands on the shoulders of maven.

What's the easiest way to do it?

Han Tuzun
  • 461
  • 1
  • 5
  • 9

1 Answers1

1

If your dependency is declared as a submodule, you can change it to track the latest commit of a branch.

Then any git submodule update --remote would update the dependency to the latest commit.
(Don't forget to add and commit in the parent repo the new gitlink, the special entry in the index, which represents the new SHA1 of the submodule).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250