-
Notifications
You must be signed in to change notification settings - Fork 225
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
Append flag doesnt add newline if not present in file #852
Comments
@Waterdrips I'm going to assign this one to you, can you send a PR and a unit test when you have time. |
/add label: help wanted |
I'm willing to attempt to fix this one. |
Thanks @jantytgat |
Hi, I'll take a peek at this issue Saturday evening (11/6). I figure it may already be fixed or still need fixin'...either way I'll let you know. 👍 |
Thank you @kylos101 💪 |
Hi, it's definitely still an issue, I was able to recreate using the instructions in this issue. I started a fix last night, and will share a draft later today. |
Signed-off-by: Kyle Brennan <[email protected]>
Tested with Linux and Windows, by appending many new functions to a single stack.yml file. Signed-off-by: Kyle Brennan <[email protected]>
Evening 👋 , the 🔧 for this should be all set in #902 , let me know if any changes are needed? 👍 👍 |
Hey @alexellis , may I ask for you to take a peek at #902, and let me know if you'd like anything else? I tested in Linux and Windows, wrote new unit tests (hooray, coverage!), and asserted no existing tests are broken. |
I did take a look already and commented. I'll add it to the project view so it doesn't keep getting bumped off my radar. |
Hey @alexellis , I might be missing something... 😟 I thought I addressed your comments from the initial review 21 days ago in a52cd2b. Can you share any feedback that I have not addressed / you would like me to do (a link is okay too)? 👍 👍 |
Nvm, I get it now, we're working from a Github project - cool. I'll follow-up in #contributors. |
Tested with Linux and Windows, by appending many new functions to a single stack.yml file. Signed-off-by: Kyle Brennan <[email protected]>
Hey @alexellis 👋 This one should be all set now 🥳 🎉 Lemme know if anything else is needed? |
Expected Behaviour
The append flag shuld a function correctly if the file doesn't have a newline at the end
Current Behaviour
When using
faas-cli new --append stack.yml
i have found that this doesnt append a newline if one is not present in the fileI therefore created a new function and it appended like this
Possible Solution
check the stack file for a newline, if not present add one?
Steps to Reproduce (for bugs)
Context
Your Environment
faas-cli version
):Linux
The text was updated successfully, but these errors were encountered: