question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Order of locked package markers is unstable.

See original GitHub issue

Issue

When performing a poetry update package markers in poetry.lock get re-ordered in an unstable way. For example, running poetry update on the provided pyproject.toml keeps swapping these markers around in the poetry.lock file.

diff --git a/poetry.lock b/poetry.lock
index 204943b..982ec97 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -28,7 +28,7 @@ version = "0.3.3"
 [[package]]
 category = "dev"
 description = "Disable App Nap on OS X 10.9"
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform == \"darwin\" or python_version >= \"3.4\" and sys_platform == \"darwin\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"darwin\" or python_version == \"2.7\" and sys_platform == \"darwin\""
+marker = "python_version >= \"3.4\" and sys_platform == \"darwin\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform == \"darwin\" or python_version == \"2.7\" and sys_platform == \"darwin\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"darwin\""
 name = "appnope"
 optional = false
 python-versions = "*"
@@ -1080,7 +1080,7 @@ version = "0.1.9"
 [[package]]
 category = "main"
 description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"
-marker = "python_version < \"3.5\" or python_version == \"2.7\" and python_version < \"3.0\" or python_version >= \"2.7\" and python_version < \"3.0\""
+marker = "python_version < \"3.5\" or python_version >= \"2.7\" and python_version < \"3.0\" or python_version == \"2.7\" and python_version < \"3.0\""
 name = "enum34"
 optional = false
 python-versions = "*"
@@ -2094,7 +2094,7 @@ testing = ["docopt", "pytest (>=3.0.7)"]
 [[package]]
 category = "dev"
 description = "Object-oriented filesystem paths"
-marker = "python_version >= \"2.7\" and python_version < \"3.0\" and python_version in \"2.6 2.7 3.2 3.3\" or python_version >= \"2.7\" and python_version < \"3.0\" and (python_version == \"2.7\" or python_version == \"3.3\") or python_version == \"2.7\" or python_version == \"2.7\""
+marker = "python_version == \"2.7\" or python_version == \"2.7\" or python_version >= \"2.7\" and python_version < \"3.0\" and python_version in \"2.6 2.7 3.2 3.3\" or python_version >= \"2.7\" and python_version < \"3.0\" and (python_version == \"2.7\" or python_version == \"3.3\")"
 name = "pathlib2"
 optional = false
 python-versions = "*"
@@ -2139,7 +2139,7 @@ version = "*"
 [[package]]
 category = "dev"
 description = "Pexpect allows easy control of interactive console applications."
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\""
+marker = "python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\""
 name = "pexpect"
 optional = false
 python-versions = "*"
@@ -2253,7 +2253,7 @@ version = "2.7.7"
 [[package]]
 category = "dev"
 description = "Run a subprocess in a pseudo terminal"
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\""
+marker = "python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\""
 name = "ptyprocess"
 optional = false
 python-versions = "*"
@@ -3346,7 +3346,7 @@ version = "0.6.1"
 [[package]]
 category = "dev"
 description = "Enable Unicode input and display when running Python from Windows console."
-marker = "python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"win32\" or sys_platform == \"win32\" and python_version == \"2.7\""
+marker = "sys_platform == \"win32\" and python_version == \"2.7\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"win32\""
 name = "win-unicode-console"
 optional = false
 python-versions = "*"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
charettescommented, Dec 10, 2019

This is still a legitimate issue that I believe should be addressed. No one else commented on it yet but I assume from the 👍 that it’s affecting a few other users as well.

1reaction
finswimmercommented, Aug 23, 2022

This topic has improved a lot since this issue was open. I guess it should be solved.

Feel free to leave a comment if you disagree.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unstable Features - The Cargo Book
The Cargo.lock file is always included when a package is published if the package contains a binary target. cargo install requires the --locked...
Read more >
Nixpkgs 23.05 manual - NixOS
This manual primarily describes how to write packages for the Nix ... Both nixos-unstable and nixpkgs follow the master branch of the ...
Read more >
apt.conf(5) — apt — Debian unstable
Defaults to on, which will cause APT to install essential and important packages as soon as possible in an install/upgrade operation, in order...
Read more >
Molecular and Computational Methods for the Detection of ...
The other tumors are classified as MSS (microsatellite stable) or MSI-L (MSI-low) if no markers or only one marker is unstable (or <30–40% ......
Read more >
Package Markers (Dozen) - PJSIGNS.com
PLEASE NOTE: THESE MARKERS ARE MADE FROM A STURDY, YET FLEXIBLE PLASTIC MATERIAL (POLYETHYLENE) THAT WILL NOT CHIP, CRACK, OR BREAK. GUARANTEED! THOUSANDS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found