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

add NewS3StoreWithBucket constructor #167

Merged
merged 2 commits into from
Nov 7, 2018
Merged

Conversation

nickatsegment
Copy link
Contributor

Deprecate NewS3Store to avoid env var in lib

Deprecate NewS3Store to avoid env var in lib
store/s3store.go Outdated Show resolved Hide resolved
@systemizer
Copy link
Contributor

systemizer commented Nov 7, 2018

looks great

the one thing i worry about is whether someone is depending on the environment variable with the library. But given this is an experimental feature and we haven't started using it, I agree with this approach

@nickatsegment
Copy link
Contributor Author

I think the reliance on an env var for a critical piece of info makes its utility as a library pretty limited. You'd need a lock around creation to make sure the env var is in the correct state.

I considered just replacing NewS3Store. But I think deprecating and targeting removal in v3 is the best way.

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.

2 participants