astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.88k stars 467 forks source link

Can't use `rye config` CLI to configure `[[sources]]` due to 2 square brackets being used #1338

Open asmith26 opened 3 months ago

asmith26 commented 3 months ago

It would be helpful for be able to configure this for e.g. CI/CD purposes. Thanks for any help!

Steps to Reproduce

$ rye config --set sources.name=my_pypi  # produces:
[sources]
name = "my_pypi"

$ rye config --set "[sources].name=my_pypi"  # produces:
["[sources]"]
name = "my_pypi"

Expected Result

(2 square brackets, as per https://rye.astral.sh/guide/sources/)

[[sources]]
name = "my_pypi"

Actual Result

see above

Version Info

rye 0.38.0

Stacktrace

No output returned.

Mai0313 commented 2 months ago

same issue