How to reproduce ofborg error locally?

Recently, I opened my first pull-request for nixpkgs but ofborg CI failed. Then, I intend to reproduce this failure on my local machine but I have no idea how to install ofborg.

PR: Fix qiskit build and updated from 1.0.1 to 1.2.4 by comavius · Pull Request #350943 · NixOS/nixpkgs · GitHub
ofborg output: Output path comparison · GitHub

I’d appreciate it if you could give me some advice.

I don’t know how to run ofborg checks locally, but your error is due to IFD - you can’t depend on a derivation to get the lockfile, you’ll have to either set cargoHash only (preferred), or you must vendor the lockfile in nixpkgs if it has git dependencies.

Relevant
https://nixos.org/manual/nixpkgs/unstable/#rust

2 Likes

I added hash of cargo dependency and my PR passed the CI. Thanks for your advice.