openfaas / openfaas/faas-cli

Can't have "template" folder in function folder

Open
#745 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Go
Stars
816
Forks
230
Avg merge
6h 4m
Merged PRs (30d)
1

Description

Can't have "template" folder in function folder

Expected Behaviour

This function stopped working at this commit, renaming template to templates fixed the issue

https://github.com/alexellis/cloudlogo/commit/9e29ed51c449fa1dcfb0cda55f9ceab6eafbec77

Possible Solution

Revisit any code that does a blanket ban on copying "template" or "build" folders in the pre-build stage.

not-present

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the pre-build stage and the blanket exclusion of "template" and "build" folders. Reproduce the issue with a function containing a folder named "template", then verify that the folder is copied while the existing build-folder behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.