-
Notifications
You must be signed in to change notification settings - Fork 39
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
Don't require :goth :json config to be present at compile time #4
Comments
Just saw #2, which is about the same error, but I believe with goth supporting Google Cloud Platform metadata this should be reconsidered? |
Hello @kommen, yes I saw that new I'll have to look into it. I'll try to take a look this weekend but I've got a ton of work until the following week so I can't promise anything. |
Hey, let me know if you need any help / clarification. I'm fixing up the GCP metadata branch today to get it merged soon. |
I took a quick look at what's causing this. Fixing it in the function I would suggest deferring those to runtime as this can cause other problems as well, e.g. identical artifacts being deployed to test and production environments. To retrieve the project ID from Goth you should call |
Instead of parsing the Goth application configuration, retrieve the project ID from the Goth.Config process. This does not currently work with how get_project_id is called at compile time in the rest of the project. Please see issue Overbryd#4 for more information.
Sorry I didn't look at this in the meantime. I'll take a look later today! |
@tazjin could you please elaborate on deferring the project ID to be present at runtime? Do you mean in the module attribute in the Request and Impl modules? Should this attribute be changed so that the function get_project_id is always called directly at runtime? |
Yes, exactly. The project ID may be different at runtime than at compile time |
@tazjin I'll try to take care of this in the weekend or are you taking care of it in your fork? |
@sashaafm My fork now supports the same |
Nice, will you make a PR? That's the only change right? |
Nope, there's work left to do - I'm wondering if you could explain what the idea with the macro utilisation is? If it was only for embedding the project ID I would remove that. |
Yes just for embedding the project ID for easier access. I guess I should have thought a bit more about that design decision! Removing it from the module attribute to the function for runtime access shouldn't break anything I think. |
I guess stripping the whole .Impl thing and just putting the code directly in the modules is feasible then? |
I think so. I was inspired by ExAws so I decided to follow their structure when I started building GCloudex. However, GCloudex don't really uses macros to the same extent as ExAws does. |
I stripped them out in my fork but the tests need some restructuring as well, haven't had time for that so far. |
Is this issue still being worked on? |
Hello @jdrakes, I'm maintaining or working on this project actively anymore and probably won't work on it again, unless I've got the need to do so. However, I'm open to contributions. |
@Overbryd indeed I’m not maintaining this anymore. Are you interested? |
Thanks for the offer. I am happy to take it.
Lets figure out the handover in a PM.
… On 12. Jul 2018, at 21:23, Sasha Fonseca ***@***.***> wrote:
@Overbryd <https://github.com/Overbryd> indeed I’m not maintaining this anymore. Are you interested?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#4 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABSd34FifTJaKgghWdWkyVorwSj143Sks5uF6IegaJpZM4JSDDW>.
|
@Overbryd I'm going to transfer the ownership to you. Please take good care of this lib, since it's got some sentimental value for me (was related to my Master Thesis). Unfortunately time goes on and I I've got little of it to dedicate to this library. |
@Overbryd please delete your fork, otherwise GitHub doesn't allow the ownership transfer. |
Will do. I have some time this weekend to complete the take over.
I will take good care.
Sasha Fonseca <[email protected]> schrieb am Fr. 13. Juli 2018 um
12:24:
… @Overbryd <https://github.com/Overbryd> please delete your fork,
otherwise GitHub doesn't allow the ownership transfer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABSd2xV1OiZgReuM0g7B35tylChXxHUks5uGHVmgaJpZM4JSDDW>
.
|
@sashaafm I have removed the fork, and I have now accumulated all the changes to the configuration to have this project run again on my local version. If you still want to transfer the project, you can do so now, as my fork is now removed. Next steps:
|
I'm using this
goth
branch, which looks like it might be merged soonish: peburrows/goth#6This doesn't require the
:goth
:json
to be set at all, as it can be discovered.However, right now if
:json
is not set,gcloudex
doesn't compile:The text was updated successfully, but these errors were encountered: