2020-03-16 16:45:50 UTC - Tom Barber: Hey @Michele Sciabarra got 2 secs?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377150279000
----
2020-03-16 16:47:04 UTC - Tom Barber: I got passed a sample action from a 
colleague working through your Go stuff in the book
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377224279500
----
2020-03-16 16:47:36 UTC - Tom Barber: (if anyone else knows please chime in)
the structure looks something like this:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377256280100
----
2020-03-16 16:47:52 UTC - Tom Barber: ```tld ->
     src/
     vendor/
     ...```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377272280600
----
2020-03-16 16:48:09 UTC - Tom Barber: the book says zip up the sources and pass 
them to the docker image for precompilation
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377289281000
----
2020-03-16 16:48:13 UTC - Michele Sciabarra: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377293281300
----
2020-03-16 16:48:16 UTC - Michele Sciabarra: correct
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377296281600
----
2020-03-16 16:48:19 UTC - Tom Barber: but doesn't pass the vendor stuff off
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377299281700
----
2020-03-16 16:48:20 UTC - Tom Barber: and fails
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377300282000
----
2020-03-16 16:48:26 UTC - Tom Barber: do they just need chucking in the zip?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377306282400
----
2020-03-16 16:48:34 UTC - Michele Sciabarra: you have to zip the vendor stuff 
too
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377314282600
----
2020-03-16 16:48:41 UTC - Tom Barber: cool makes sense thanks
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377321282800
----
2020-03-16 16:48:57 UTC - Michele Sciabarra: in the examples there is a 
makefile that does that
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377337283200
----
2020-03-16 16:48:58 UTC - Michele Sciabarra: look
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377338283400
----
2020-03-16 16:49:53 UTC - Michele Sciabarra: 
<https://github.com/apache/openwhisk-runtime-go/tree/master/examples/golang-hello-vendor>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377393283600
----
2020-03-16 16:50:20 UTC - Tom Barber: ah yeah excellent
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377420283900
----
2020-03-16 16:50:21 UTC - Tom Barber: thanks!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584377421284200
----
2020-03-16 21:24:03 UTC - Tom Barber: @Michele Sciabarra one last Go question 
which you hopefully have a clue about
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584393843284600
----
2020-03-16 21:24:30 UTC - Tom Barber: ```import (
        "gotest/src/utils"
)```
locally my IDE wants this

in the docker container it wants:
```import(
    "utils"
)```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584393870285200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:24:37 UTC - Tom Barber: any ideas?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584393877285400
----
2020-03-16 21:33:47 UTC - Brendan Doyle: With the new world we're living in, 
we're having issues with clients uploading functions getting 500's from the 
controller as we're all working over vpn now which can be slow. We believe it's 
tied to this timeout that's hardcoded to 30 seconds in the http trait. Will 
open an issue if this should be configurable.
<https://github.com/apache/openwhisk/blob/master/common/scala/src/main/scala/org/apache/openwhisk/http/BasicHttpService.scala#L85>
+1 : Rodric Rabbah
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394427287700
----
2020-03-16 21:39:29 UTC - Michele Sciabarra: which versin of go are using?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394769289400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:39:41 UTC - Brendan Doyle: we're way back on a version from 2018, 
I'm currently in the middle of figuring out an upgrade plan for us we can 
adhere to, but seems like it's still in the latest version anyways so wanted to 
bring it up
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394781289700
----
2020-03-16 21:39:56 UTC - Tom Barber: 1.11
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394796289800?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:40:41 UTC - Tom Barber: @Brendan Doyle I asked similar a few 
months ago and apparently its by design I believe @Rodric Rabbah can probably 
offer more insight
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394841290600?thread_ts=1584394841.290600&cid=C3TPCAQG1
----
2020-03-16 21:40:50 UTC - Michele Sciabarra: and vscode I guess
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394850290700?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:41:01 UTC - Tom Barber: intellij
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394861290900?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:41:21 UTC - Michele Sciabarra: the trick used to be to set the 
GOPATH properly
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394881291100?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:41:30 UTC - Michele Sciabarra: GOPATH=$PWD
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394890291300?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:41:45 UTC - Tom Barber: thats the TLD of the project you're 
working in right?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394905291500?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:41:47 UTC - Michele Sciabarra: then put things under src/utils
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394907291700?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:42:26 UTC - Tom Barber: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394946291900?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:42:36 UTC - Tom Barber: in this case GOPATH would be 
~/go/src/gotest ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584394956292300?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:43:26 UTC - Michele Sciabarra: be careful to put
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395006292500?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:43:29 UTC - Michele Sciabarra: GO111MODULES=off
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395009292700?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:43:43 UTC - Michele Sciabarra: or you will be in trouble
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395023293000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:43:50 UTC - Michele Sciabarra: however if I can give an advice
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395030293200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:02 UTC - Michele Sciabarra: put everything in the main package 
for the action
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395042293400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:14 UTC - Michele Sciabarra: and use the vendor only for 
external libraries
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395054293600?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:35 UTC - Michele Sciabarra: I was able to make this thing work
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395075293900?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:42 UTC - Michele Sciabarra: but it is a nightmare
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395082294100?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:45 UTC - Michele Sciabarra: here is an example:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395085294300?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:44:46 UTC - Tom Barber: hehe
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395086294500?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:45:35 UTC - Michele Sciabarra: 
<https://github.com/sciabarracom/openwhisk-runtime-go/tree/master/examples/golang-main-package/src>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395135294800
----
2020-03-16 21:45:38 UTC - Michele Sciabarra: 
<https://github.com/sciabarracom/openwhisk-runtime-go/tree/master/examples/golang-main-package/src>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395138295000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:02 UTC - Michele Sciabarra: this example allows to write AN 
ACTION that works with go `1.11`
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395162295300?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:10 UTC - Tom Barber: yeah thats cool, I was looking at that 
earlier and blending what the other guy had written and your stuff
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395170295600?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:22 UTC - Michele Sciabarra: bvut making this to work with ides 
is complicated
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395182295800?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:24 UTC - Tom Barber: I did push yours to OW so I do know it 
works, so I'm working in that direction
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395184296000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:40 UTC - Michele Sciabarra: the solution really is to use go 
modules
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395200296200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:46:49 UTC - Michele Sciabarra: and stuff like this:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395209296400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:47:25 UTC - Michele Sciabarra: replace 
<http://github.com/pagopa/io-sdk/wskide|github.com/pagopa/io-sdk/wskide> =&gt; 
./wskide
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395245296600?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:47:49 UTC - Brendan Doyle: Do you remember what the reasoning was?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395269296800?thread_ts=1584394841.290600&cid=C3TPCAQG1
----
2020-03-16 21:47:58 UTC - Michele Sciabarra: until then I suggest to avoid to 
use subpackages
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395278297000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:49:45 UTC - Tom Barber: alrighty thanks a lot @Michele Sciabarra

if you need any help prodding around with the later Go versions and subpackages 
there's a couple of us here who can probably help once we've got a few bits and 
pieces pivoted across and working with the older framework
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395385297200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:49:46 UTC - Michele Sciabarra: not because the runtime does not 
support it
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395386297400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:49:55 UTC - Michele Sciabarra: because you get issues with IDEs
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395395297600?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:51:34 UTC - Michele Sciabarra: and in any case I will release a 
version of the runtime where I suggest to place the libraries in external repos 
in any case and  let the go modules support to retrieve them
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395494297800?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:52:03 UTC - Michele Sciabarra: this because how Go works overall
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395523298000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:52:44 UTC - Michele Sciabarra: Go has this idea that packages 
have a real internet address you cannot easily change
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395564298200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:53:17 UTC - Tom Barber: yeah, I know the package stuff in Go has 
caused interesting headaches for all developers I think over the years 
:slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395597298400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:53:33 UTC - Tom Barber: I think dependency management on all 
languages have their quirks :slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395613298600?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:53:53 UTC - Tom Barber: long running threads and running out of 
the pool.... I think, but don't quote me on it
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395633298800?thread_ts=1584394841.290600&cid=C3TPCAQG1
----
2020-03-16 21:53:58 UTC - Michele Sciabarra: from the time I wrote the runtime 
to know changed everything
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395638299000?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:54:26 UTC - Michele Sciabarra: I will introduce Go modules for 
1.13 and leave the old runtime work in the old way
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395666299200?thread_ts=1584393870.285200&cid=C3TPCAQG1
----
2020-03-16 21:55:10 UTC - Tom Barber: cool! If you need willing testers and 
stuff when its close to ready, or not even close to ready, let us know 
:slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1584395710299400?thread_ts=1584393870.285200&cid=C3TPCAQG1
----

Reply via email to