You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mix deps.get
...
* Updating salad_ui (https://github.com/bluzky/salad_ui.git - v0)
error: The following untracked working tree files would be overwritten by checkout:
.envrc
flake.lock
flake.nix
Please move or remove them before you switch branches.
Aborting
** (Mix) Command "git --git-dir=.git checkout --quiet 1fb404637c872501ae781505160a3bc51031e5f5" failed
Expected behavior
Mix could be more aggressive in overwriting cached deps. When checkout fails it could run git clean -fd.
I think the current behaviour is safer and should stay the default one. The aggressive one could be enabled by a flag, e.g. mix deps.get --ci
The text was updated successfully, but these errors were encountered:
Elixir and Erlang/OTP versions
1.18.2
Operating system
linux
Current behavior
When changing locked refs in git dependencies CI cache often leads to failing builds that need manual intervention and cache busting.
In my case I'm using CircleCI build pipeline with cache on
In this particular case switching dep version
to
lead to untracked files in the dep working tree
Expected behavior
Mix could be more aggressive in overwriting cached deps. When checkout fails it could run
git clean -fd
.I think the current behaviour is safer and should stay the default one. The aggressive one could be enabled by a flag, e.g.
mix deps.get --ci
The text was updated successfully, but these errors were encountered: