Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when running "direnv allow" on fresh git clone of repo. #3575

Closed
arthurwolf opened this issue Sep 13, 2023 · 1 comment · Fixed by #3628
Closed

Issue when running "direnv allow" on fresh git clone of repo. #3575

arthurwolf opened this issue Sep 13, 2023 · 1 comment · Fixed by #3628

Comments

@arthurwolf
Copy link
Contributor

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

Screenshot from 2023-09-13 02-19-23

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant