FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add option for copying dependencies instead of creating a link by Psycholive · Pull Request #685 · serverless/serverless-python-requirements · GitHub

This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Add option for copying dependencies instead of creating a link - #685

Open
Psycholive wants to merge 3 commits into
serverless:masterfrom
Psycholive:master
Open

Add option for copying dependencies instead of creating a link#685
Psycholive wants to merge 3 commits into
serverless:masterfrom
Psycholive:master

Conversation

Copy link
Copy Markdown

I have a case where a windows folder containing sources is mounted in a linux VM and therefore symlinks cannot be created in .serverless folder.

This PR add a new option to copy dependencies in .serverless folder instead of creating a symlink. It is less beautiful and quick but it is the only option I see in my case.

It is possible to include this option in next release?

pgrzesik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @Psycholive - I have some comments, it also would be good to cover that functionality with a test case

Comment thread README.md Outdated
```yaml
custom:
pythonRequirements:
useFinalCopy: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm not sure if this property name is a great choice here - it doesn't really convey the meaning in my opinion - maybe we could use something more descriptive? Like useSymlinks: false or something along those lines? What do you think?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Property naming is always a difficult task :) Why not useSymlinks indeed.

Comment thread README.md Outdated

Before final packaging, a link is created in .serverless folder for python dependencies.
If it is not possible to create a symbolic link, dependencies can be copied instead of linked
whith the foloowing option:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

multiple typos

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Indeed.

Copy link
Copy Markdown
Contributor

Hey @Psycholive - sorry for not responding for a long time. Do you still have time to finalize this PR?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL