plutus icon indicating copy to clipboard operation
plutus copied to clipboard

nix develop github:IntersectMBO/plutus

Open nede64 opened this issue 1 year ago • 1 comments

Summary

hey i am following this “Quick Start — Plutus Core and Plutus Tx User Guide 1.0.0 documentation

and the first step is nix develop github:IntersectMBO/plutus

this gives me this error

error: builder for ‘/nix/store/qy1ldnz8fsrwxy205ly3v5hcxypi3w4s-nixpkgs-fmt-1.1.0-vendor.tar.gz.drv’ failed with exit code 1; last 15 log lines: unpacking sources unpacking source archive /nix/store/3c9mzmzpmq786bb6mkjnxf71zvvjqsvr-source source root is source patching sources updateAutotoolsGnuConfigScriptsPhase configuring no configure script, doing nothing building source = “git+https://github.com/rust-analyzer/rowan#109885a86b7a095f637927944003add60d2f7ef3”

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 log /nix/store/qy1ldnz8fsrwxy205ly3v5hcxypi3w4s-nixpkgs-fmt-1.1.0-vendor.tar.gz.drv’. error: 1 dependencies of derivation ‘/nix/store/l8jai6n0dar0q6lbbnnjqzkzvi1drxbx-nixpkgs-fmt-1.1.0.drv’ failed to build error: 1 dependencies of derivation ‘/nix/store/7shgg8gnzadxa6z9ga89vaazrqkdczs9-plutus-env.drv’ failed to build

Steps to reproduce the behavior

nix develop github:IntersectMBO/plutus

Actual Result

error: builder for ‘/nix/store/qy1ldnz8fsrwxy205ly3v5hcxypi3w4s-nixpkgs-fmt-1.1.0-vendor.tar.gz.drv’ failed with exit code 1; last 15 log lines: unpacking sources unpacking source archive /nix/store/3c9mzmzpmq786bb6mkjnxf71zvvjqsvr-source source root is source patching sources updateAutotoolsGnuConfigScriptsPhase configuring no configure script, doing nothing building source = “git+https://github.com/rust-analyzer/rowan#109885a86b7a095f637927944003add60d2f7ef3”

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 log /nix/store/qy1ldnz8fsrwxy205ly3v5hcxypi3w4s-nixpkgs-fmt-1.1.0-vendor.tar.gz.drv’. error: 1 dependencies of derivation ‘/nix/store/l8jai6n0dar0q6lbbnnjqzkzvi1drxbx-nixpkgs-fmt-1.1.0.drv’ failed to build error: 1 dependencies of derivation ‘/nix/store/7shgg8gnzadxa6z9ga89vaazrqkdczs9-plutus-env.drv’ failed to build

Expected Result

Working nix shell

Describe the approach you would take to fix this

No response

System info

debian 12 nix (Nix) 2.20.1

nede64 avatar Feb 07 '24 07:02 nede64

Cannot reproduce. @zeme-wana any ideas?

michaelpj avatar Feb 07 '24 10:02 michaelpj

You're building nixpkgs-fmt-1.1.0 from source which means that your caches aren't working. You can confirm this by looking at the logs, you should see this line:

warning: ignoring untrusted substituter 'https://cache.iog.io/', you are not a trusted user.

Please follow this guide and try again.

As to why nixpkgs-fmt-1.1.0 fails to build from source, I'm not sure. It could have to do with your nix version or nix configuration.

I will bump nixpkgs-fmt to version 1.3.0 in an attempt to fix this.

zeme-wana avatar Mar 14 '24 12:03 zeme-wana

Thanks @zeme-wana!

Please follow this guide and try again.

Given this, I'm going to triage this issue as "needs info from the reporter".

effectfully avatar Mar 14 '24 19:03 effectfully

I'm closing the issue given that there's been no info from the reported for more than three months. Do feel free to reopen.

effectfully avatar Jun 19 '24 01:06 effectfully