question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serverless overwrites existing ignore file

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andymac4182commented, May 10, 2017

Probably should check if you want to merge or replace or do nothing.

0reactions
pmuenscommented, Feb 7, 2019

Closing since this issue is quite old and there are no future plans to change the behavoir of this in the foreseeable future.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found