Closed mbtx2 closed 1 year ago
Hi @mbtx2, thanks for opening the issue. Moving this issue to lambda builders repository. We will investigate it further.
This is probably the same issue as #253 - Maybe you could have a look into this? Unfortunately, it's been open for almost 2 years and it hasn't been fixed, yet 😞
@nsteffens do you have a real example in requirements that I can use to re-produce this? I've tried with requests library but I was able to build it.
requests @ git+ssh://git@github.com/psf/requests.git@v2.30.0
In the meantime, I will resolve this issue to continue discussion in #253 since this is duplicate as you mentioned.
Description:
When using a url to install a python package via a git+https url, sam build fails.
For instance, if you have this in your requirements.txt file:
sam build fails, although pip is able to install this requirements.txt file without error, so this is a fully-supported pip install string. Have tried with @main, @a_tag, etc., doesn't work.
Error:
Steps to reproduce:
In a Lambda project, put a git+https package url in the requirements.txt file. run sam build. You will get the error:
Observed result:
Expected result:
Should be able to install git+https package without error. If pip can install it, sam should not throw errors.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
One note... These git+https package references do work with lambda container images, because they do work in dockerfiles/docker builds. This only affects the standard Lambda build process.