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

Support for Package Patterns Syntax

Open cturner-confluent opened this issue 2 years ago • 1 comments

Currently the docs still showing support for package includes, but that is no longer the supported format and should use package patterns instead any way to move to supporting this?

Here is the error output recieved when attempting to use package patterns instead of include exclude

Environment: darwin, node 18.3.0, framework 3.19.0 (local) 3.18.1v (global), plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
TypeError: Patterns must be a string or an array of strings
    at assertPatternsInput (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/globby/index.js:16:9)
    at generateGlobTasks (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/globby/index.js:41:2)
    at module.exports (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/globby/index.js:115:20)
    at Package.resolveFilePathsFromPatterns (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/serverless/lib/plugins/package/lib/package-service.js:278:12)
    at Package.resolveFilePathsFunction (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/serverless/lib/plugins/package/lib/package-service.js:218:17)
    at async Package.packageFunction (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/serverless/lib/plugins/package/lib/package-service.js:179:23)
    at async /Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/serverless/lib/plugins/package/lib/package-service.js:99:9
    at async Promise.all (index 2)
    at async Package.packageService (/Users/cturner/github.com/confluentinc/image-digest-validator/node_modules/serverless/lib/plugins/package/lib/package-service.js:115:5)

cturner-confluent avatar Jun 21 '22 21:06 cturner-confluent

will work on this latter

danteay avatar Oct 03 '23 19:10 danteay