Serverless overwrites existing ignore file
See original GitHub issueThis is a Bug Report
Description
My existing .gitignore
file was overwritten when I ran serverless create --template aws-nodejs
. I expected that Serverless would append to any existing file.
No error message was reported, I noticed when I went to commit Serverless’ changes that it had overwritten the existing .gitignore
file.
Yes, this happened when I started a new project but there was an existing ignore file because I’m using Vagrant; I’d already committed the Vagrantfile
and added the .vagrant
folder to the .gitignore
file. This is actually the first time I’ve used Serverless (but this issue seemed like something you’d want to know about).
Similar or dependent issues: I didn’t notice any when I searched.
Additional Data
- Serverless Framework Version you’re using: v1.12.1
- Operating System: Ubuntu 16.04 LTS Server (in a Vagrant-built VirtualBox VM hosted by OS X 10.11)
- Stack Trace: N/A
- Provider Error messages: N/A
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Serverless Framework Commands - AWS Lambda - Deploy
Run this command when you have made infrastructure changes (i.e., you edited serverless.yml ). Use serverless deploy function -f myFunction when you have...
Read more >Using Serverless Framework to enable Lambda Insights on an ...
Follow these steps to use Serverless Framework to enable Lambda Insights on an existing Lambda function. · This is done through a Lambda...
Read more >serverless-export-env - npm
Serverless plugin to export environment variables into a .env ... By default, the plugin will no longer overwrite any existing .env file.
Read more >git - .gitignore and "The following untracked working tree files ...
-x means ignored files are also removed as well as files unknown to git. · -d means remove untracked directories in addition to...
Read more >terraform-aws-modules/lambda/aws
Lambda Functions with existing package (prebuilt) stored locally ... txt", # Skip all txt files recursively ] }, { path ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Probably should check if you want to merge or replace or do nothing.
Closing since this issue is quite old and there are no future plans to change the behavoir of this in the foreseeable future.