Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow manually provided function.json file #50

Closed
paulbatum opened this issue May 19, 2017 · 3 comments
Closed

Allow manually provided function.json file #50

paulbatum opened this issue May 19, 2017 · 3 comments
Labels

Comments

@paulbatum
Copy link
Member

See discussion in Azure/azure-functions-host#1507. Basically in the cases where you can't use the attributes (or don't want to) you need to be able to specify function.json directly for a given function.

@ahmelsayed
Copy link
Contributor

I'm adding a file called functionSdk.out that file is a flat list that looks like

function1\function.json
function2\function.json
function3\function.json
....

the logic for crating and using the file is as follows.



                                         +-------------------+
                                         |                   |
                                         |  functionSdk.out  |
                                         |                   |
                                         +-------------------+
                                                   |
                               +----------------------------------------+
                               |                                        |
                               |                                        |
                               v                                        v
                             Exists                               Doesn't Exist
                               +                                         +
                               |                                         |
                               |                                         |
                               v                                         |
                           Load file                                     |
                               +                                         |
                               |                                         |
                               |                                         |
                               v                                         |
                          Delete File                                    |
                               +                                         |
                               |                                         |
                               |                                         |
                               v                                         |
         Delete function.json mentioned in the file                      |
                               +                                         |
                               |                                         |
                               | <---------------------------------------+
                               v
    Create a new empty functionSdk.out for current build
                               +
                               |
                               |
                               v
    Only create a function.json file if it doesn't exist
                               +
                               |
                               |
                               v
     Add function.json to the new functionSdk.out file



@ahmelsayed
Copy link
Contributor

@davidebbo @paulbatum @lindydonna @vijayrkn @mlorbetske
Let me know if you have any concerns with this approach.

@davidebbo
Copy link

To put the flowchart's purpose in plain English: "start by deleting any function.json that the tool created in the previous build".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants