python-poetry / python-poetry/poetry

poetry update --lock do not include "default=true" from tool.poetry.source to updated lock file.

Open
#1,951 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: Ubuntu 18.04.3 LTS
  • Poetry version: 1.0.2

Issue

I needed to disable PyPi so i specified internal package repo as instructed in docs (link), than run poetry update --lock to update lock file. Result lock file has "default=true" set only for a first source:

# first package
[package.source]
reference = "my-repo"
url = "..."
default = true  # <-- default set, all ok.

[[package]]
category = "main"

# second and rest packages
[package.source]
reference = "my-repo"
url = "..."
# default is not set

[[package]]
category = "main"

Contributor guide

Open the contributing guide

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 reproducing the issue with poetry update --lock using the tool.poetry.source configuration described in the linked repositories documentation. Compare the generated lock file’s package.source entries and verify that the default=true value is handled consistently for packages from the configured source.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.