sergio
Could not compile dependency :faker - could not make directory with -p
I can’t compile my dependencies anymore. I get this error:
sergiotapia at PapaMIA-A000039 in ~/Work/backend on develop
$ mix
==> faker
could not compile dependency :faker, “mix compile” failed. You can recompile this dependency with “mix deps.compile faker”, update it with “mix deps.update faker” or clean it with “mix deps.clean faker”
** (File.Error) could not make directory (with -p) “/opt/cache/_build/dev/lib/faker”: no such file or directory
(elixir) lib/file.ex:314: File.mkdir_p!/1
I tried to delete folders:
rm -rf deps/
rm -rf _build/
mix deps.get runs fine, then mix just fails with the error above.
Do I need to manually create the folder in /opt/ called cache? Why did this work before and why did it break suddenly? Appreciate any ideas.
Marked As Solved
sergio
Leaving this here for posterity, it was related to the BUILD_PATH env variable.
Something was setting it to /opt/cache/_build. Changing it to _build fixed my issue.
Now I need to hunt down what’s setting this thing.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









