Commit Graph

8 Commits

Author SHA1 Message Date
R. Ryantm
7c3e6dfc95 rockcraft: 1.5.3 -> 1.6.0 2024-10-24 13:16:22 +00:00
Jon Seager
3e5165145c
rockcraft: 1.2.3 -> 1.5.3 2024-10-04 11:39:01 +01:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Robert Schütz
06169afb32 rockcraft: pin pydantic-yaml 2024-07-24 09:34:06 -07:00
Robert Schütz
b2701cdfbd rockcraft: use packageOverrides 2024-07-24 09:34:05 -07:00
Jon Seager
880e9225b6
rockcraft: use setuptools.dist rather than distutils.util 2024-07-10 16:43:50 +02:00
R. Ryantm
e9ae20a072 rockcraft: 1.2.2 -> 1.2.3 2024-04-07 13:56:58 +00:00
Jon Seager
609376b084
rockcraft: init at 1.2.2 2024-03-27 18:32:39 +00:00