Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

include pattern not recoginized on Windows #29

Open
abhishekbiyala opened this issue Feb 20, 2017 · 6 comments
Open

include pattern not recoginized on Windows #29

abhishekbiyala opened this issue Feb 20, 2017 · 6 comments

Comments

@abhishekbiyala
Copy link

Hi,

I am trying use include pattern as follows. It works fine when running serverless from Linux and Mac but not on Windows. serverless-build-plugin does not add [SOURCE] on Windows due to this.

functions:
  test:
    include:
      - dist/**

Thanks,
Abhishek

@nfour
Copy link
Owner

nfour commented Feb 22, 2017

Need more information

  • version of serverless-build-plugin
  • version of serverless
  • any error messages
  • layout of produced zip artifact

I've scanned over the obvious locations in the codebase to see if path was not normalizing filePaths but cannot see anything standing out.

@sushant-pradhan
Copy link

Hello,
I encountered the same issue in windows. Here is the version info:
i) serverless-build-plugin@1.1.15
ii) serverless@1.9.0
iii) No error message but it starts packaging [MODULE]. Ideally it should package [SOURCE] followed by [MODULE]
iv) The zip artifact has only node_modules folder and no dist folder

@nfour
Copy link
Owner

nfour commented Mar 29, 2017

@an-sush Can you please show us your serverless.build.yml?

@sushant-pradhan
Copy link

I am using serverless.yml with following sections related to build-plugin:

custom:
  build:
    method: bundle
    sourceMaps: true
    include:
      - 'dist/**'
plugins:
  - serverless-build-plugin

@jawadst
Copy link

jawadst commented Sep 5, 2017

I am seeing the same issue. Here is my serverless.build.yml:

method: bundle

babel: true
uglify: false

include:
  - src/

functions:
  scrape:
    include:
      - "src/scrape/**"

Nothing gets built when I run it on Windows (I get an empty ZIP file) whereas it works fine in a Docker container running Linux.

@nfour
Copy link
Owner

nfour commented Sep 6, 2017

Right, will try this on windows when I get a chance. Bear with me guys 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants