Closed Fran-Rg closed 11 months ago
+1
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
When using an empty requirements.txt the module fails with the following stacktracke:
I believe the problem is due to the zip not being created since it doesn't have anything to pack. A test on requirements.txt size > 0 would prevent that.
Versions
Module version [Required]:
Terraform version: 1.3.7
Provider version(s):
provider registry.terraform.io/hashicorp/aws v4.57.0
provider registry.terraform.io/hashicorp/external v2.3.1
provider registry.terraform.io/hashicorp/local v2.4.0
provider registry.terraform.io/hashicorp/null v3.2.1
Reproduction Code [Required]
Steps to reproduce the behavior:
Create a python lambda with the source_path directory containing an empty requirements.txt file
Expected behavior
Considered to not have a requirements.txt
Actual behavior