Skip to content

Conversation

@eczajk1
Copy link
Contributor

@eczajk1 eczajk1 commented Nov 22, 2019

The plugin does not currently work if you try to use a custom config file that is in another folder. This PR attempts to fix that.

$ sls deploy --config ./services/myfile.yml
 
  Error --------------------------------------------------
 
  Error: ENOENT: no such file or directory, open '/mypath/myfile.yml'
      at Object.fs.openSync (fs.js:646:18)
      at Object.fs.readFileSync (fs.js:551:33)
      at readFileSync (/Users/me/.nvm/versions/node/v8.12.0/lib/node_modules/serverless/lib/utils/fs/readFileSync.js:7:24)
      at Utils.readFileSync (/Users/me/.nvm/versions/node/v8.12.0/lib/node_modules/serverless/lib/classes/Utils.js:84:12)
      at YamlParser.parse (/Users/me/.nvm/versions/node/v8.12.0/lib/node_modules/serverless/lib/classes/YamlParser.js:17:40)
      at ServerlessStepFunctions.yamlParse (/mypath/node_modules/serverless-step-functions/lib/yamlParser.js:17:8)
      at ServerlessStepFunctions.tryCatcher (/mypath/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/mypath/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/mypath/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromiseCtx (/mypath/node_modules/bluebird/js/release/promise.js:641:10)
      at _drainQueueStep (/mypath/node_modules/bluebird/js/release/async.js:97:12)
      at _drainQueue (/mypath/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (/mypath/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues (/mypath/node_modules/bluebird/js/release/async.js:15:14)
      at runCallback (timers.js:810:20)
      at tryOnImmediate (timers.js:768:5)
      at processImmediate [as _immediateCallback] (timers.js:745:5)

Copy link
Collaborator

@horike37 horike37 left a comment

Choose a reason for hiding this comment

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

@eczajk1
Thanks 🙏 LGTM.

@horike37 horike37 merged commit e0aae30 into serverless-operations:master Nov 27, 2019
@horike37
Copy link
Collaborator

🎉 This PR is included in version 2.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ss-betseqnzr pushed a commit to BetSEQNZR/serverless-step-functions that referenced this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants