Skip to content

Poetry config reports wrong error message when missing values for poetry config http-basic #6911

@Kircheneer

Description

@Kircheneer
  • Poetry version: 1.2.2
  • Python version: 3.9.2
  • OS version and name:Debian GNU/Linux 11 (bullseye)
  • pyproject.toml: Default config after poetry init - see below
[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Leo Kirchner <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I think the error message for missing credentials in this command could be a little more precise:

$ poetry config http-basic.foo

There is no http-basic.foo setting.

This is especially relevant when using environment variables inside a DOCKERFILE where the variables may be (accidentally) undefined:

$ poetry config http-basic.foo $FOO_NAME $FOO_PASSWORD

There is no http-basic.foo setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions