Skip to content
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

fix: Correctly handle packaging for function during deploy -f #794

Merged

Conversation

pgrzesik
Copy link
Contributor

What did you implement:

Correct behavior of copyExistingArtifacts when it's invoked as a part of deploy function command.

Closes: #737

How did you implement it:

I used a similar approach to one taken in a few different places when function is available in options

How can we verify it:

Setup a project that has at least two functions and package.individually: true. Deploy the stack and then try to deploy a single function with deploy function command. Previously it was failing when it tried to copy an artifact for other functions that the one specified with deploy function command.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

Copy link

@ffxsam ffxsam left a comment

Choose a reason for hiding this comment

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

LGTM! I don't think I have the proper rights to approve the PR, but hey, I figured I'd try. 😉

@j0k3r j0k3r added this to the 5.4.2 milestone Apr 26, 2021
Copy link
Member

@j0k3r j0k3r left a comment

Choose a reason for hiding this comment

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

Thanks @pgrzesik 👏

@j0k3r j0k3r force-pushed the fix-behavior-for-deploy-function branch from 5bb4011 to d63b6cd Compare April 26, 2021 08:36
@j0k3r
Copy link
Member

j0k3r commented Apr 26, 2021

Looks like coveralls has issue at the moment.
I'll re-run workflows once it'll be fixed on their side.

lemurheavy/coveralls-public#1543

@j0k3r j0k3r merged commit 7cc34e4 into serverless-heaven:master Apr 26, 2021
@pgrzesik pgrzesik deleted the fix-behavior-for-deploy-function branch April 28, 2021 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sls deploy function -f <function> not respecting entry slsw.lib.entries
3 participants