Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
416 stars 125 forks source link

[Bug]: The contents of this file are auto-generated. #4554

Open magify-expert-shopify opened 1 day ago

magify-expert-shopify commented 1 day ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Nothing, just pull my content

Actual behavior

I have this message in start of all my files after pulling.

/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/

The message is written multiple times, it's spam.

Verbose output

shopify theme dev --legacy

Reproduction steps

  1. Pull with shopify cli

Operating System

Windows 11

Shopify CLI version (check your project's package.json if you're not sure)

3.67.3

Shell

PowerShell

Node version (run node -v if you're not sure)

v22.5.1

What language and version are you using in your application?

ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x64-mingw32]

rcasimmons commented 17 hours ago

This was introduced with JSON comments being a thing. There is no bug nor is it spam.

magify-expert-shopify commented 3 hours ago

How can I avoid getting this kind of addition with every pull? Image