Michael Clifford
01/07/2022, 7:16 PMthdxr
01/07/2022, 7:17 PMMichael Clifford
01/07/2022, 7:22 PMMichael Clifford
01/07/2022, 7:22 PMMichael Clifford
01/07/2022, 7:24 PMMichael Clifford
01/08/2022, 12:06 AM0.51.1
fixes it. I'll look at the changelogs to see what I missedMichael Clifford
01/08/2022, 12:12 AMv0.54.0
Michael Clifford
01/10/2022, 3:44 PM0.54.0
here?thdxr
01/10/2022, 3:56 PMthdxr
01/10/2022, 4:30 PMMichael Clifford
01/10/2022, 4:42 PM0.54.0
thdxr
01/10/2022, 5:03 PMMichael Clifford
01/10/2022, 5:18 PMMichael Clifford
01/10/2022, 5:19 PMthdxr
01/10/2022, 5:22 PMMichael Clifford
01/10/2022, 5:44 PMMichael Clifford
01/10/2022, 5:46 PMsst start
works. sst deploy
I know is failing as well because my Github Actions have also failed for version >= 0.54.0
thdxr
01/10/2022, 5:48 PMMichael Clifford
01/10/2022, 5:49 PMsst start
works just finethdxr
01/10/2022, 5:49 PMMichael Clifford
01/10/2022, 5:49 PMthdxr
01/10/2022, 5:49 PMMichael Clifford
01/10/2022, 5:54 PMMichael Clifford
01/10/2022, 5:54 PMMichael Clifford
01/10/2022, 6:00 PMf90d2b34-9c74-4f24-a9c6-7f5aade88e2d REQUEST cliffom-sst-bff-demo-apollo-s-ApolloLambdaB6F60C8A-JtgtsktKMccv [src/handlers/apollo/lambda.handler] invoked by API POST /
ed43b770-db83-48c0-8f37-a6e3839edc6a REQUEST cliffom-sst-bff-demo-users-ap-usersHandler1FC87A7B-2BcJJ2X68RMz [src/handlers/api/users] invoked by API GET /users/me
ed43b770-db83-48c0-8f37-a6e3839edc6a ERROR build_failure: The function src/handlers/api/users failed to build
f90d2b34-9c74-4f24-a9c6-7f5aade88e2d RESPONSE {"statusCode":200,"body":"{\"errors\":[{\"message\":\"500: Internal Server Error\",\"locations\":[{\"line\":2,\"column\":3}],\"path\":[\"User... 847 more characters","multiValueHeaders":{"x-powered-by":["Express"],"access-control-allow-origin":["*"],"content-type":["application/json; charset=utf-8"],"content-length":["947"],"etag":["W/\"3b3-44hKDLl6sybPeg4N4zSedxCE0fo\""]},"isBase64Encoded":false}
thdxr
01/10/2022, 6:01 PMthdxr
01/10/2022, 6:01 PMthdxr
01/10/2022, 8:17 PMthdxr@challenger /home/thdxr/tmp/sst-bff-demo$ go build src/handlers/api/users/main.go main
go: downloading [<http://github.com/aws/aws-sdk-go|github.com/aws/aws-sdk-go>](<http://github.com/aws/aws-sdk-go>) v1.41.6
# command-line-arguments
src/handlers/api/users/main.go:52:63: undefined: User
src/handlers/api/users/main.go:53:12: undefined: CreateUser
src/handlers/api/users/main.go:62:91: undefined: User
src/handlers/api/users/main.go:83:10: undefined: User
src/handlers/api/users/main.go:92:13: undefined: GetUserByID
thdxr
01/10/2022, 8:17 PMthdxr
01/10/2022, 8:17 PMMichael Clifford
01/10/2022, 8:51 PMhow would you build this function?I'm not sure what you are asking - the build process was working fine pre
0.54.0
thdxr
01/10/2022, 8:53 PMthdxr
01/10/2022, 8:53 PMgo build path/to/handler/main.go
but that's not pciking up the other files in the directorythdxr
01/10/2022, 8:55 PMgo build path/to/handler/...
?Michael Clifford
01/10/2022, 9:07 PMgo build src/handlers/api/users/*.go
Michael Clifford
01/11/2022, 4:38 PMMichael Clifford
01/11/2022, 4:39 PM0.54.0
- also this issue will impact any project using Go (unless the Golang handlers are single-file definitions)thdxr
01/11/2022, 4:40 PMthdxr
01/11/2022, 4:41 PM*
some people may have multiple handlers in a directorythdxr
01/11/2022, 4:41 PMMichael Clifford
01/11/2022, 5:09 PMthdxr
01/11/2022, 7:19 PMgo build src/handlers/api/users/*.go
isn't supportedthdxr
01/11/2022, 7:20 PMgo build ./src/handlers/api/users/...
worksthdxr
01/11/2022, 7:21 PM...
appendedthdxr
01/11/2022, 7:26 PMthdxr
01/11/2022, 7:29 PMMichael Clifford
01/11/2022, 8:51 PMMichael Clifford
01/13/2022, 6:09 PMthdxr
01/13/2022, 6:31 PMMichael Clifford
01/13/2022, 6:53 PMthdxr
01/13/2022, 6:58 PMMichael Clifford
01/13/2022, 9:16 PMthdxr
01/14/2022, 12:26 PMthdxr
01/14/2022, 12:26 PMMichael Clifford
01/14/2022, 6:38 PMMichael Clifford
01/14/2022, 9:06 PMthdxr
01/14/2022, 9:50 PM