You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a package in my poetry.lock file at a specific version.
[[package]]
name = "lief"
version = "0.13.2"
description = "Library to instrument executable formats"
category = "main"
optional = false
python-versions = ">=3.8"
I however wanted a newer version of this package so I overrode it in my poetry Nix configuration.
# the following is lief.nix{fetchFromGitHub,python,stdenv,cmake,ninja}:
letpyEnv=python.withPackages(ps: [ps.setuptoolsps.tomlips.pipps.setuptools]);instdenv.mkDerivationrec{pname="lief";version="0.14.0-3414ded";src=fetchFromGitHub{owner="lief-project";repo="LIEF";rev="3414ded8cdcbd9705f7871c66c212b15cd74ea69";sha256="sha256-GJTj4w8HhAiC2bQAjEIqPw9feaOHL4fmAfLACioW0Q0=";};outputs=["out""py"];
....
I'm surprised that this works and that the version is the newer one but the poetry.lock is now out of sync with what I am installing.
❯ python
Python 3.10.12 (main, Jun 6 2023, 22:43:10) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lief;print(lief.__version__)
0.14.0-
Is this an anti-pattern ? Is this what we expect?
Maybe we should log something when poetry2nix is using a version that differs than the lock file?
The text was updated successfully, but these errors were encountered:
fzakaria
added a commit
to fzakaria/poetry2nix
that referenced
this issue
Sep 18, 2023
Add a new doc explaining the footgun that can happen if you chose to
override the package version for a python package in poetry2nix
fixesnix-community#1314
Add a new doc explaining the footgun that can happen if you chose to
override the package version for a python package in poetry2nix
fixesnix-community#1314
Describe the issue
I have a package in my poetry.lock file at a specific version.
I however wanted a newer version of this package so I overrode it in my poetry Nix configuration.
I'm surprised that this works and that the version is the newer one but the poetry.lock is now out of sync with what I am installing.
Is this an anti-pattern ? Is this what we expect?
Maybe we should log something when poetry2nix is using a version that differs than the lock file?
The text was updated successfully, but these errors were encountered: