You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running faas-cli build fails when templates are missing from the template folder. While the command should fail in this case the behaviour is confusing because it also fails for default templates from the official template repo while other commands like faas-cli publish pull the default templates automatically when they are missing.
Expected Behaviour
Pull templates from the official template repo automatically when they are missing.
Current Behaviour
Running faas-cli build does not pull the templates from the official template repo automatically.
Why do you need this?
Who is this for?
What company is this for? Are you listed in the ADOPTERS.md file?
Running
faas-cli build
fails when templates are missing from the template folder. While the command should fail in this case the behaviour is confusing because it also fails for default templates from the official template repo while other commands likefaas-cli publish
pull the default templates automatically when they are missing.Expected Behaviour
Pull templates from the official template repo automatically when they are missing.
Current Behaviour
Running
faas-cli build
does not pull the templates from the official template repo automatically.Why do you need this?
Who is this for?
What company is this for? Are you listed in the ADOPTERS.md file?
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Pull the default templates automatically before building.
Workaround: run
faas-cli template pull
beforefaas-cli build
Which Solution Do You Recommend?
Make the beaviour consistent with the other commands and expand the template directory automatically.
Steps to Reproduce (for bugs)
template
directory from an existing functions project.faas-cli build
Context
This issue was discovered while splitting out the GitHub Actions workflow for the openfaas store functions.
Your Environment
faas-cli version
):docker version
):Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
The text was updated successfully, but these errors were encountered: