bryanhuntesl

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

outlog

believe it’s a feature that it locks…

you can use mix deps.update my_dependency

OvermindDL1

OvermindDL1

Correct, it’s to prevent it from, say, randomly breaking when it was just working from build to build.

ityonemo

ityonemo

Aliasing certain mix tasks might work without having to write a shell script.

ityonemo

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

axelson

Scenic Core Team

As far as I know there’s no way to accomplish this directly. I’d probably either:

  1. Add a deps_get.sh script that ran mix deps.get; mix deps.update grpc_dep
  2. Use a path dependency in development and add a ci task to check that the version of the grpc_dep in 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.

Where Next?

Popular in Questions Top

pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

We're in Beta

About us Mission Statement