This is a Bug Report
Description
What went wrong?
Could not load file() when path given was absolute
What did you expect should have happened?
file() should handle absolute paths
What was the config you used?
...
provider:
environment: ${file(/Users/damon/development/mindhive/graymont-trucks/deploy/build/dev/cloud/env-local.json)}
What stacktrace or error message from your provider did you see?
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(/Users/damon/development/mindhive/graymont-trucks/deploy/build/dev/cloud/env-local.json)'
could not be found.
Additional Data
Just to show the file from the example above should work, it does exist:
$ ll /Users/damon/development/mindhive/graymont-trucks/deploy/build/dev/cloud/env-local.json
-rw-r--r-- 1 damon staff 560 16 May 20:52 /Users/damon/development/mindhive/graymont-trucks/deploy/build/dev/cloud/env-local.json
And if I change the path in serverless.yaml to be relative it works:
...
provider:
environment: ${file(../deploy/build/dev/cloud/env-local.json)}
- Serverless Framework Version you're using:
- Operating System:
Your Environment Information -----------------------------
OS: darwin
Node Version: 7.10.0
Serverless Version: 1.13.2
This is a Bug Report
Description
What went wrong?
Could not load
file()when path given was absoluteWhat did you expect should have happened?
file()should handle absolute pathsWhat was the config you used?
What stacktrace or error message from your provider did you see?
Additional Data
Just to show the file from the example above should work, it does exist:
And if I change the path in serverless.yaml to be relative it works: