-
Notifications
You must be signed in to change notification settings - Fork 177
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
remove config package-scoped variables #342
Conversation
re: the test failures, if I had just one guess, the cause of the always 'good' test return code is likely because the |
04c177e
to
76a139b
Compare
} | ||
} | ||
// TODO: this fails.. the default config has a url set, unsure why this would error | ||
// func TestLoadConfigurationMissingOriginURL(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fails for me; there is a default that gets added by the Loader. I think this fails on next
too.
@crandles We've merged |
27c3765
to
a2d9b5c
Compare
As part of supporting config reloading (#12), this PR aims to remove package-scoped global variables that are utilized throughout trickster. These are generally hard to maintain if they require post-init updates, and would all require some sort of locking or atomic operations for coordinating usage.
This will not attempt to add config reloading functionality, but should prepare the codebase for it 🤞.
https://peter.bourgon.org/blog/2017/06/09/theory-of-modern-go.html
https://dave.cheney.net/2017/06/11/go-without-package-scoped-variables
TO DO:
log
singletonTest failures don't seem to be returned through travis; I may look at that as well.