Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(credential-provider-node): add peerDependencies @aws-sdk/client-sts #6386

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heecheolman
Copy link

@heecheolman heecheolman commented Aug 14, 2024

Issue

  • x

Description

If the @aws-sdk/client-sts package is intended to be a singleton, it should be added to the peerDependencies of @aws-sdk/credential-provider-node.

Otherwise, in a Yarn Berry environment, you may encounter the following error:

@aws-sdk/credential-provider-node@npm:3.629.0 doesn't provide @aws-sdk/client-sts, requested by @aws-sdk/credential-provider-web-identity
  • @aws-sdk/client-s3@latest has a dependency on @aws-sdk/credential-provider-node (code)
  • @aws-sdk/credential-provider-node@latest has a dependency on @aws-sdk/credential-provider-web-identity (code)
  • @aws-sdk/credential-provider-web-identity@latest lists @aws-sdk/client-sts as a peerDependency (code)

Testing

Before:

  • Installing @aws-sdk/client-s3 in a Yarn Berry environment results in the above error.

After:

  • Installing @aws-sdk/client-s3 in a Yarn Berry environment no longer triggers the error.

Additional context

x

Checklist

  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@heecheolman heecheolman requested a review from a team as a code owner August 14, 2024 15:10
@heecheolman
Copy link
Author

review please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant