NixOS / NixOS/ofborg

Feature Request: Test for incompatible versions used in the inputs tree of affected packages

Open
#533 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
322
Forks
171
PR merge metrics
No merged PRs in 30d

Description

In https://github.com/NixOS/nixpkgs/pull/99956, we learned how disastrous are the consequences when incompatible versions of qt, are used in transitive inputs of a package. We learned that the hard way, by experiencing the issues on runtime, and many users experienced the same issue in various packages.

@jorsn wrote a script / nix function that checks that:

https://paste.sr.ht/~jorsn/307bd7a99855c7d6f34923ebe2f41a9f2d0f6f8a

Called like this (using nixUnstable):

nix eval --impure --expr 'with import ./. {}; import ./dep-ver-consistent.nix lib false 1 "qtbase" carla'

Maybe ofborg should perform this check upon every attribute in the changed paths?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked dep-ver-consistent.nix script and the example nix eval command to understand the proposed consistency check. Then trace how ofborg processes attributes in changed paths; done means deciding and implementing whether that check should run for every affected attribute, with coverage for the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.