Hey there,
I was able to deploy a default Vapor project fine but after adding a 3rd party dependency the deploy
command started failing with the following error:
Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c swift build -c release --static-swift-stdlib -Xlinker -ljemalloc" did not complete successfully: exit code: 1
It also prints a bunch of prints mentioning the 3rd party library files. The most specific one was this:
529.7 error: compile command failed due to signal 6 (use -v to see invocation)
529.7 SIL memory lifetime failure in @$s10URLRouting5FieldV5parsey6OutputQzAA14URLRequestDataV6FieldsVzKF: store-borrow location cannot be written
529.7 at instruction: %20 = unchecked_take_enum_data_addr %15 : $*Optional<ArraySlice<Optional<Substring>>>, #Optional.some!enumelt // user: %21
529.7
529.7 in function:
529.7 // Field.parse(_:)
529.7 sil [serialized] [ossa] @$s10URLRouting5FieldV5parsey6OutputQzAA14URLRequestDataV6FieldsVzKF : $@convention(method) <Value where Value : Parser, Value.Input == Substring> (@inout URLRequestData.Fields, @in_guaranteed Field<Value>) -> (@out Value.Output, @error any Error) {
But I’m not entirely sure since the logs does not tell much or at least much that I can understand.
Can someone share some light here?
Thanks!