Skip to content

func host start allows running in invalid directory #1489

@lastcoolnameleft

Description

@lastcoolnameleft

If you run func host start in a directory outside of the project, it exits with the error: Unable to find project root.. This is good behavior.

However, if you run func host start in a function subdirectory (e.g. HttpTrigger from the examples), then it will create a new host.json file and start. This is inconsistent behavior. A preferred behavior would be to exit similar to if it was outside of the directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions