Skip to content

Implicit wildcard added to exclude  #2414

Closed

Description

@jsnowacki

This is a Bug Report / Feature Proposal

Not sure if this is a bug or a feature, but for sure it is a bit counterintuitive behaviour.

Description

I have data folder I wanted to exclude form the package, so I defined exclude as follows:

exclude:
    - data
  • What went wrong?
    • This works as data* (or even *data*, I haven't tried it that much) and excludes all the files that contains string data, even from places like requirements.
  • What did you expect should have happened?
    • At most it should exclude all the files or folders that match exactly data. If this was a design assumption, this should be documented better, though, implicit wildcards are not that typical.
  • What was the config you used?
    • As above
  • What stacktrace or error message from your provider did you see?
    • Not related with the exclusion directly, but I had files missing in the requirements, which took some time to track down.

Additional Data

  • _Serverless Framework Version you're using_:
    1.0.0-rc.2
  • _Operating System_:
    Windows 10 and Ubuntu 14.04 LTE

Activity

  1. mthenw commented on Nov 3, 2016

    @mthenw
    Contributor

    Closing this one as it's already discussed in #2071.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions