Expand /info: Expose OSType (GOOS), Architecture (GOARCH)#13921
Expand /info: Expose OSType (GOOS), Architecture (GOARCH)#13921olleolleolle wants to merge 1 commit intomoby:masterfrom
Conversation
199088b to
ccf408f
Compare
|
(I asked in IRC for a re-run on janky.) |
|
@olleolleolle does swarm need only |
|
Also platform seems really redunant as it can be composed of GOOS + GOARCH, wdyt? |
|
My understanding is: These two would be the minimal for Swarm's current needs:
|
|
@olleolleolle yup and in case the concat would be done elsewhere I suppose (because only swarm may need the underscore between the two), let's see what others have to say about this :) |
|
I agree! I will run over the existing commit with the reduced one. |
|
ping @vieux @aluzzardi |
ccf408f to
24f6d19
Compare
|
I am not a fan of |
|
Naming apart, just GOOS and GOARCH is OK for me as I've already said. So ppl (swarm) can play with them |
|
I think one of the "problems" here is that I think |
|
I agree with @tiborvass: Not a fan or I think |
|
Agree with @estesp too... should we change what |
|
Given I don't think we can change what's there today because it will probably break someone, I would recommend:
|
97d727f to
adb626c
Compare
|
Not fond of the name |
why don't we version those fields by the api version? that's what we normally do. |
|
Ping @olleolleolle please rebase and modify according to #13921 (comment) Let us know if you don't have time, we can always carry your commit. |
adb626c to
c89ae46
Compare
|
ping @tiborvass @estesp @duglin PTAL Thanks so much @olleolleolle, apologies for all the bike shedding ❤️ |
|
Hi all. Back again, getting ready to introduce the new folder Detecting runtime architecture...on Windows. Following the leads given by @tiborvass, I came upon counter-indications. In the docs for the SYSTEM_INFO struct for Windows, a contributed comment presented the value found there as not-runtime (quite similar to previous discussion):
|
|
I like the two fields, if we can just get GOARCH to return the right thing. |
|
Added a few incomplete files in order to show the plan. |
|
+1 to @tiborvass comment in #13921 (comment) |
|
Collective review: We all agree with #13921 (comment) and would just add an ommission: the name of the field for the architecture should be @olleolleolle if you have better alternatives for how to actually detect Architecture at runtime for those different platforms we're all ears, but if not, we agree on the proposal mentioned above. Thanks!! |
|
Thanks, great, then I can go forward with the simplest possible thing. Glad to hear it. (Now removed the WIP commit I had created while misunderstanding Tibor's plan outline.) |
431fa60 to
96184fc
Compare
|
@tiborvass You can remove the GitHub label |
|
@olleolleolle I just edited my proposal above for the windows function. It should be using https://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx |
|
@olleolleolle any updates? Would you prefer someone carries this PR? |
|
Ah, no updates - and yes please do carry it, anyone. (Good process, that!)
|
|
Talked with @vdemeester earlier and he is planning on carrying this PR tomorrow. Thanks so much again for being patient with us @olleolleolle |
|
Ping @vdemeester: was that carried? |
|
@icecrime in the process (writing some stuff on |
|
Closing this as carrying in #17478. |
It was not immediately clear why we were not using runtime.GOARCH for these (with a conversion to other formats, such as x86_64). These docs are based on comments that were posted when implementing this package; - moby#13921 (comment) - moby#13921 (comment) Some links were now redirecting to a new location, so updated them to not depend on the redirect. While at it, also updated a call to logrus to use structured formatting (WithError()). Signed-off-by: Sebastiaan van Stijn <[email protected]>
This change amends the diagnostic output of
/info, to add two more keys. This supports Swarm's effort of helping users target multi-architecture Swarm clusters. See #13634.These keys were introduced:
✨ to @runcom, who helped out a lot with this.