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

Support a global configuration file #40

Open
canny bot opened this issue Jun 26, 2024 · 2 comments
Open

Support a global configuration file #40

canny bot opened this issue Jun 26, 2024 · 2 comments

Comments

@canny
Copy link

canny bot commented Jun 26, 2024

Currently, each project must specify both the Pact Broker (or Pactflow) host and any credentials to publish or retrieve pacts.
It would be nice to have a utility (similar to aws configure or travis init) that creates a global config file (e.g. ~/.pact/config) where this data can be stored once and is understood by all of our CLI tools and test frameworks.
This isn't as much of a problem for CI/automation, but it is particularly acute for setting up developers in large scale teams.

https://pact.canny.io/admin/board/feature-requests/p/support-a-global-configuration-file

Copy link
Author

canny bot commented Jun 26, 2024

This issue has been linked to a Canny post: Support a global configuration file 🎉

@YOU54F
Copy link
Member

YOU54F commented Jun 26, 2024

Beth - January 19, 2020

Does anyone think there would be a need for having multiple broker profiles? Or perhaps, being able to override the ~/.pact/config by putting a file in the project's local directory.

Matt Fellows - January 20, 2020

Beth: Good question. There is prior art again with the AWS_PROFILE concept. I ran into this issue with npm in the past where a private npm registry couldn't be configured whilst also using the public one.
I'm not sure how often people will have to deal with multiple brokers simultaneously though? (please prove me wrong people!)

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

No branches or pull requests

1 participant