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 searched the issues of this repo and believe that this is not a duplicate.
Issue
The following issue might be too exotic to warrant an update of the documentation or release notes for 1.2.x. However, if the previous behaviour was intended, it could well represent a regression that might need fixing.
A private, password-protected repository may at the same time be configured both as a package source in pyproject.toml as well as a publishable repository in poetry.toml. Both configurations require a user-defined repository identifier that may differ, e.g. pypi-test-source and pypi-test-publishable respectively. Credentials may be provided as environment variables. So far, so good.
Prior to Poetry 1.2.0, it was sufficient to provide credentials for one of the repository configurations, e.g. the publishable repository. Poetry would implicitly use the provided credentials both for accessing sources as well as for publishing despite mismatched repository identifiers.
Since 1.2.0, the credentials are only used if their identifier matches the identifier used in the configuration. This could break existing setups, as it did with our CI pipeline.
As a work-around, one might either provide a second set of credentials to match the other repository identifier or use the same identifier in both configuration files. We did the later and or CI pipeline is back to normal.
Closing as not a bug -- this is pretty obscure for the docs, as you were relying on an unexpected edge case with credentials handling that was changed as part of an overall correctness refactor. We could migrate this to a discussion if you'd like, but I think that's about as much visibility as it needs.
Issue
The following issue might be too exotic to warrant an update of the documentation or release notes for 1.2.x. However, if the previous behaviour was intended, it could well represent a regression that might need fixing.
A private, password-protected repository may at the same time be configured both as a package source in pyproject.toml as well as a publishable repository in poetry.toml. Both configurations require a user-defined repository identifier that may differ, e.g.
pypi-test-source
andpypi-test-publishable
respectively. Credentials may be provided as environment variables. So far, so good.Prior to Poetry 1.2.0, it was sufficient to provide credentials for one of the repository configurations, e.g. the publishable repository. Poetry would implicitly use the provided credentials both for accessing sources as well as for publishing despite mismatched repository identifiers.
Since 1.2.0, the credentials are only used if their identifier matches the identifier used in the configuration. This could break existing setups, as it did with our CI pipeline.
As a work-around, one might either provide a second set of credentials to match the other repository identifier or use the same identifier in both configuration files. We did the later and or CI pipeline is back to normal.
Originally posted by @jakob-keller in #6262 (comment)
The text was updated successfully, but these errors were encountered: