Shopify / shopify-app-template-remix

320 stars 134 forks source link

git tracks .env files after running shopify config use #778

Closed danyn closed 1 month ago

danyn commented 1 month ago

Issue summary

Before opening this issue, I have:

Expected behavior

What do you think should happen? .env files should never be tracked!

Actual behavior

What actually happens? .env files could be tracked after funning shopify config use

Steps to reproduce the problem

  1. run shopify config use
  2. check your version control

Debug logs

// Paste any relevant logs here
paulomarg commented 1 month ago

Thanks for raising this, we should indeed not be tracking the .env file if that is happening! We'll look into it!

lizkenyon commented 1 month ago

Hi there 👋

I wasn't able to reproduce on my side. Could you confirm the steps for reproduction for me?

This is what I did shopify app init

shopify app dev

Create a .env file in the root folder

Before shopify app config use my git status showed this Image

shopify app config use

After my .env file is not being tracked in git.

Image