bryanhuntesl
Force mix to use the latest from git feature branch
I’ve got a project which depends upon another project containing protocol buffer generated files.
It’s a GRPC server project.
Is there any trick you can do to prevent a dep being locked - that is, everyone you execute ‘mix deps.get’ the latest version for the configured branch will be fetched ?
Most Liked
outlog
believe it’s a feature that it locks…
you can use mix deps.update my_dependency
OvermindDL1
Correct, it’s to prevent it from, say, randomly breaking when it was just working from build to build.
ityonemo
Aliasing certain mix tasks might work without having to write a shell script.
ityonemo
use the :branch option.
Edit: Actually i"m not 100% sure this doesn’t cache a lock at get-time. If it does, you can always mix deps.update
axelson
As far as I know there’s no way to accomplish this directly. I’d probably either:
- Add a
deps_get.shscript that ranmix deps.get; mix deps.update grpc_dep - Use a
pathdependency in development and add a ci task to check that the version of thegrpc_depin the lock file is the most recent version
a. Note that this requires you to have a separate local checkout of the dependency
Alternatively you could forgo a mix.lock file completely (by constantly deleting it) but I wouldn’t advise you to take that approach.








