You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this library, or any library that uses it, there are name clashes
with common names used in projects. Like utils. This is the result of a
random sys.path.insert at samtranslator/feature_toggle/feature_toggle.py.
This was not breaking before, I do not know on which version it started. This
breaks CI with unpinned versions. Or, for example, it breaks when any
dependency uses this module. For example moto:
moto > cfn-lint > aws-sam-translator
Either way, modules should not modify sys.path willy-nilly.
Steps to reproduce:
Create an utils.py
Create a main.py file that first imports something that reaches feature_toggle.py
Description:
When using this library, or any library that uses it, there are name clashes
with common names used in projects. Like
utils
. This is the result of arandom
sys.path.insert
atsamtranslator/feature_toggle/feature_toggle.py
.This was not breaking before, I do not know on which version it started. This
breaks CI with unpinned versions. Or, for example, it breaks when any
dependency uses this module. For example moto:
Either way, modules should not modify
sys.path
willy-nilly.Steps to reproduce:
utils.py
main.py
file that first imports something that reachesfeature_toggle.py
utils.py
Example
Observed result:
ImportError
is thrown when trying to import things from myutils.py
.Expected result:
No
ImportError
.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:Add --debug flag to any SAM CLI commands you are running
The text was updated successfully, but these errors were encountered: