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

Hardcoded kojihub endpoint #1

Closed
TristanCacqueray opened this issue Jul 14, 2020 · 3 comments · Fixed by #3
Closed

Hardcoded kojihub endpoint #1

TristanCacqueray opened this issue Jul 14, 2020 · 3 comments · Fixed by #3

Comments

@TristanCacqueray
Copy link
Contributor

The hub string is hard coded in Fedora.Koji.Api, would it be possible to update the api to support custom endpoint?

@juhp
Copy link
Owner

juhp commented Jul 17, 2020

Yes, was thinking the same thing recently.
Not quite sure why I thought this was okay ;-) probably just being lazy initially.

@TristanCacqueray
Copy link
Contributor Author

I suppose using unsafePerformIO getEnv is not an option... How about we change all the signature to include the url as the first argument?

@juhp
Copy link
Owner

juhp commented Jul 19, 2020

Yes, I like this simple solution, thanks.

I am also doing the same in pagure-hs and pdc-hs.

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 a pull request may close this issue.

2 participants