serverless-build-plugin icon indicating copy to clipboard operation
serverless-build-plugin copied to clipboard

include pattern not recoginized on Windows

Open abhishekbiyala opened this issue 8 years ago • 6 comments

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

abhishekbiyala avatar Feb 20 '17 18:02 abhishekbiyala

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.

nfour avatar Feb 22 '17 12:02 nfour

Hello, I encountered the same issue in windows. Here is the version info: i) [email protected] ii) [email protected] 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

sushant-pradhan avatar Mar 29 '17 05:03 sushant-pradhan

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

nfour avatar Mar 29 '17 09:03 nfour

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

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

sushant-pradhan avatar Mar 29 '17 14:03 sushant-pradhan

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.

jawadst avatar Sep 05 '17 16:09 jawadst

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

nfour avatar Sep 06 '17 23:09 nfour