~Hi, I am trying to use golang for some of my func...
# sst
k
Hi, I am trying to use golang for some of my functions and I think I found an issue with how the CLI handles the
cwd
here I think if the
srcPath
is defined in the function props this should be changed to the
srcPath
instead of
root
the reason for this is that
go
does not find the
go.mod
file and does not compile the code.
t
Hm I have a go project that's not running into any issues
k
If the folder with the go code is inside of the root yes.
t
Structure is
Copy code
backend/go.mod
cdk/
package.json
sst.json
I use
srcPath: "backend"
k
I have a case where we have something like
Copy code
infra/
--->sst.json
backend/
And I was using
Copy code
srcPath: "../backend"
maybe that is not supported ?
Wait 🤦‍♂️ I think I just missed one function running it now
t
There may be some weirdness with using a relative path like that, let me know if that's a problem. Typically the project structure is to keep sst.json at the root of the repo and everything is relative to that
k
Everything is working,
SST
is AWESOME 🙂
Thanks for the help
t
np 😄