aws / aws/aws-sam-cli

build: editable dependencies in Python breaks build command

Open
#818 8 comments 8 reactions 0 assignees View on GitHub
area/build maintainer/need-response
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

Currently, `sam build` uses a requirements.txt file to install dependancies, if a dep is marked as editable (-e in the file), it causes the `build` command to break with:
`OSError: [Errno 30] Read-only file system: '/tmp/samcli/source/src'`

This could potentially causes issues in a number of situations, most notably, people who use the same requirements.txt file for development and for build.

Ideally, `sam build` would strip/sanitise the requirements.txt to remove any flags for the build command.

---
SAM CLI Version: 0.8.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.