chalice icon indicating copy to clipboard operation
chalice copied to clipboard

Follow symlinks in chalicelib

Open johntmyers opened this issue 7 years ago • 3 comments

Hi,

I'm wondering if there is currently a way to do this, or request that this is a feature, but following symlinks of packages within the chalicelib directory would be very useful. Especially when sharing custom code between various projects.

Other tools like Apex (apex.run) already do this and it seems to work relatively well.

johntmyers avatar Jan 30 '18 20:01 johntmyers

Marking this as a feature request.

joguSD avatar Feb 02 '18 23:02 joguSD

AWS recently announced "layers" for sharing code and libraries among lambda functions: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html

This should be the way to go now, instead of symlinks, as suggested in #1001.

onurmatik avatar Dec 02 '18 07:12 onurmatik

Layers solve one particular issue, but there are plenty of other reasons to support symlinks in the chalicelib directory. In my particular case, the code I wish to symlink is used by chalice, but is also used by other non-chalice scripts, etc., and should remain where it is.

jessebrennan avatar Jan 24 '22 22:01 jessebrennan