Issue when running "direnv allow" on fresh git clone of repo.
arthurwolf opened this issue · 1 comments
arthurwolf commented
Describe the bug
I get the following error message when running direnv allow:
configuring
no configure script, doing nothing
building
source = "git+https://github.com/wireapp/cryptobox?branch=develop#ec45a50c3608d00744625125125932beac890965"
source = "git+https://github.com/wireapp/hkdf?branch=develop#215025dc0efec119a7368447ed97bb908eddfb1c"
source = "git+https://github.com/wireapp/proteus?branch=develop#bbecc0c649d020bb208ad83d120c6971913e2eeb"
ERROR: The Cargo.lock contains git dependencies
This is currently not supported in the fixed-output derivation fetcher.
Use cargoLock.lockFile / importCargoLock instead.
error: builder for '/nix/store/hdm3ayf87vz9zjzwrj77j661bc6w4gfh-cryptobox-c-2019-06-17-vendor.tar.gz.drv' failed with exit code 1;
last 10 log lines:
> building
> source = "git+https://github.com/wireapp/cryptobox?branch=develop#ec45a50c3608d00744625125125932beac890965"
> source = "git+https://github.com/wireapp/hkdf?branch=develop#215025dc0efec119a7368447ed97bb908eddfb1c"
> source = "git+https://github.com/wireapp/proteus?branch=develop#bbecc0c649d020bb208ad83d120c6971913e2eeb"
>
> ERROR: The Cargo.lock contains git dependencies
>
> This is currently not supported in the fixed-output derivation fetcher.
> Use cargoLock.lockFile / importCargoLock instead.
>
For full logs, run 'nix-store -l /nix/store/hdm3ayf87vz9zjzwrj77j661bc6w4gfh-cryptobox-c-2019-06-17-vendor.tar.gz.drv'.
error: 1 dependencies of derivation '/nix/store/nadwf4lv8m8hs2585nqm087laaig8h6j-cryptobox-c-2019-06-17.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2whrdwlfzr6nj8yhsbcdwch4nmy259pp-cryptobox-haskell-0.1.1.drv' failed to build
building '/nix/store/a6hra45nvs8yp6xhb7gm2asz01s97z4x-fluvio-wasm-timer-0.2.5.drv'...
error: 1 dependencies of derivation '/nix/store/9x5mr4aigmsnxpbn2ks9kv2hmnlqvaqm-ghc-9.2.7-with-packages.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0wpijhs5d8rxdz656gyijkmmzsj5z3ka-wire-server-dev-env.drv' failed to build
direnv: export +AWS_ACCESS_KEY_ID +AWS_REGION +AWS_SECRET_ACCESS_KEY +INTEGRATION_DYNAMIC_BACKENDS_POOLSIZE +LC_ALL +LIBRARY_PATH +PKG_CONFIG_PATH +PYTHONPATH +RABBITMQ_PASSWORD +RABBITMQ_USERNAME ~PATH
Strangely, it worked fine a day before, but now I get this message even on a fresh clone of the repo.
To Reproduce
git clone git@github.com:wireapp/wire-server.git
cd wire-server
direnv allow
Expected behavior
No error.
Screenshots
Additional context
Ubuntu 23.04, just re-installed nix after it was somehow broken, had one succesful run of direnv allow with the fresh/new nix setup.
arthurwolf commented
Runing
nix-store -l /nix/store/hdm3ayf87vz9zjzwrj77j661bc6w4gfh-cryptobox-c-2019-06-17-vendor.tar.gz.drv
As suggested in the output, gets me:
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/2wx59w9345v4xw56yyb0yw75r5z21ndb-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
source = "git+https://github.com/wireapp/cryptobox?branch=develop#ec45a50c3608d00744625125125932beac890965"
source = "git+https://github.com/wireapp/hkdf?branch=develop#215025dc0efec119a7368447ed97bb908eddfb1c"
source = "git+https://github.com/wireapp/proteus?branch=develop#bbecc0c649d020bb208ad83d120c6971913e2eeb"
ERROR: The Cargo.lock contains git dependencies
This is currently not supported in the fixed-output derivation fetcher.
Use cargoLock.lockFile / importCargoLock instead.