![]() I'm using the below command to do so: docker run \ As a part of it you are meant to package the Swift project in an Amazon Linux 2 Docker image. I basically followed this tutorial initially in order to create a basic AWS Swift Lambda. But it hasn't gotten a response, and being that it appears to be an issue with the Swift Package Manager on Linux, I decided to come and see if anyone has any light to shed on the matter here at Swift HQ. I posted the following question on StackOverflow first. So I set its value to that which was output above, but it didn't change anything. Low and behold after echoing the value it was completely empty. I also read talk of a $PKG_CONFIG_PATH environment variable, so I figured it may be possible that this value is being used instead. ![]() The first item being the very directory where openssl.pc exists. ![]() usr/lib64/pkgconfig:/usr/share/pkgconfig When I run pkg-config -variable pc_path pkg-config to see where the utility is checking for these pc files, the following is output: I've checked the openssl-devel installation in the container and openssl.pc exists inside /usr/lib64/pkgconfig. This appears to be an issue with the pkg-config utility in the Amazon Linux 2 Docker container. However, this appears to be something different than the system OpenSSL which I imagine is why the installations of openssl-devel and openssl didn't resolve the issue - as the error is not referring to the pc file of the system's OpenSSL, but perhaps to that of Kitura's OpenSSL. The alteration is the addition of the OpenSSL package: "version": "1.9.200" Strangely, whenever I run the docker command to compile the project for AWS on any commit from this one on, and then do a git status my Package.resolved file has been altered. Project compiles fine before the commit that incorporates that dependency, but following it, experiences the couldn't find pc file error. If anyone has any insight to lend on the matter it would be greatly appreciated! Update 2 Swift build -product MissingPCFile -c release -Xswiftc -static-stdlib All it is is a default SPM project with the Swift-JWT from Kitura dependency added.Īfter cloning of the project, you can run this Docker command from the root of the project directory to see the error: docker run \ Okay, I've created a minimally reproducible SPM project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |