-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix: do not use only hardcoded "go" #97
Conversation
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.
Thanks for the patch!
I like how this works, I would just ask if we can rename the env variable to something less obscure (I know what SDK is, but it's not a term we hear much in the Go ecosystem).
Also, can we please move the new function into an existing file? It seems odd to make a whole new file for a 5 line function. More of the file is boilerplate than code...
Otherwise, LGTM
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.
Only one nit-pick: unexport the GetGo
function by changing it to getGo
@mohammed90 I'd prefer that too, but it's used outside the package... |
We can use the |
Should I create a /internal file with all the extra boilerplate that really isn't necessary or move the logic in to an existing file and keep the exported name? |
@kmpm I think all we need to do is move |
@mholt Yes... but it's needed in cmd/main.go which can not reach anything in xcaddy.internal, or how do I get around that? |
Oh... I'm not sure. I will have to read more about it. |
You can. I've done it before. Let me try this coming Friday. |
@kmpm, there's a little checkbox on the side labelled "Allow edits by maintainers". Can you verify it's checked? I've moved the func to an internal package locally and need to just push the small change to the same PR. |
@mohammed90 , the box is checked. I'm looking forward to see how you solved it. P.S. Working in a different timezone than the maintainers is no fun and I do apologize. |
I'm only 1 hour ahead of your timezone 😁 but I only work on open source projects in the evenings |
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.
I like it
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.
LGTM now, thank you both!
Quick and dirty fix for #96
If you set a environment variable
XCADDY_SDK
to whatever you want to use instead of "go" then xcaddy will use it.example