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

Manually check for env variables and disable the automatic ones #256

Merged
merged 2 commits into from
Oct 29, 2019

Conversation

tomer-stripe
Copy link
Collaborator

Reviewers

r? @ob-stripe @brandur-stripe
cc @stripe/dev-platform

Summary

We're thinking that viper's automatic env wasn't playing well with how we setup user profiles. Since the two most likely cases of env variables are device_name and api_key this adds a quick check for those and uses that if found.

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a suggestion, up to you though.

Also, PR #0x100! \o/

pkg/config/profile.go Outdated Show resolved Hide resolved
@tomer-stripe tomer-stripe merged commit e65d7e2 into master Oct 29, 2019
@tomer-stripe tomer-stripe deleted the tomer/fix-env-variables branch October 29, 2019 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants