-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not include required dependency warning #260
Comments
I suspect the culprit it pulumi-aws/overlays/nodejs/serverless/function.ts Lines 315 to 321 in 7786683
but I really don't follow what that code is trying to do. Attempting a fix now, since this is blocking the demo I had wanted to do, ... please shout if anybody sees or knows anything about the underlying issue here. |
Yep Notice the leading slash in Simple one-line fix, which I have locally, and will push. We need tests. |
Argh: #230 (comment) The attempt to address that feedback led to this incorrect leading slash in the regexp. I believe it works for nested dependencies in organizations, but not for top level dependencies in organizations.
💯 |
Ahhhhh 😑 Turns out, I am still hitting some problems. At runtime:
Super strange because it is now picking up |
Hmm, well, the reason here is that
It appears we happily zip up the Also, unless I'm missing something, I don't have a way of controlling what gets included in the functions created by the Ultimately, I suspect #257 is our way out here, but I seem to be somewhat in a pinch at the moment ... I can try manually hacking some of my local packages. |
I can't reproduce this. When I reference Can you share the ZIP for you Lambda? |
Both true - #257 should remove the need for any manual overrides. There may still be the need for additional user blacklisting (for performance, not correctness) which we'll need to expose config for at various layers. |
Indeed - it looks like this does reproduce in your branch for #261, but does not reproduce when the one character fix (to remove the leading |
Alternative fix for #260, adds tests and makes a more targeted fix than #261 which appears to introduce other issues. Use path APIs instead of regexp in workaround for incorrect package names coming from read-package-tree dependency when seeing organization-scoped packages. Add tests for additional cases of organization-scoped packages (at the root as well as nested).
Fixed with #262. |
I receive the warning
for the below lambda. I can't figure out why it's missing it, since it definitely does exist. Is there a bug in the way we regex match scoped packages, because they exist inside of subdirectories?
The text was updated successfully, but these errors were encountered: