Skip to content
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

[Bug]: shopify theme push isn't working on 3.59.0 again #3731

Open
2 tasks done
xmadscientist opened this issue Apr 16, 2024 · 8 comments
Open
2 tasks done

[Bug]: shopify theme push isn't working on 3.59.0 again #3731

xmadscientist opened this issue Apr 16, 2024 · 8 comments
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working

Comments

@xmadscientist
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Push changed files.

Actual behavior

Not pushing changed files.

Verbose output

https://pastebin.com/Yq4L6Kjz

(output was too long to open a ticket)

Reproduction steps

  1. shopify theme push -e=env_name --allow-live

Operating System

Mac OS Ventura

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

3.59.0

Shell

zsh

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

v14.18.3

What language and version are you using in your application?

N/A

@xmadscientist xmadscientist added the Type: Bug Something isn't working label Apr 16, 2024
@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Apr 18, 2024
@mgmanzella
Copy link
Contributor

mgmanzella commented Apr 18, 2024

👋 hi @xmadscientist thank you for reporting this issue, would you mind rerunning the command you shared but with --verbose and then sharing the logs output in your terminal? we need this information in order to debug:

shopify theme push -e=env_name --allow-live --verbose

thank you for your help 🙏

@stijns96
Copy link

Same here.

I use

config/settings_data.json
templates/**/*.json

# Ignore all locale files except en-dev.default.json
!locale/*.json
locale/en-dev.default.json

Somehow, !locale/*.json is causing the issue. This worked before.

@mgmanzella
Copy link
Contributor

mgmanzella commented Apr 18, 2024

@stijns96 we've identified the root cause of the issue you're experiencing and working on a fix

@xmadscientist the issue you reported may be different, please still share your verbose logs (the pastebin you shared seems to have been truncated)

@stijns96
Copy link

Hi @mgmanzella,

When can we expect a fix? For our agency it's quite crucial to get the ignore file on point. Otherwise we are overwriting the content of our clients... Previously we used /(locales\/)(?!en-dev.default.json)/, but this doesn't seem to work anymore as well.

@mgmanzella
Copy link
Contributor

i don't have a time estimate on when this will be fixed, we're working through edge cases of glob matching being different in the TS implementation of theme push vs Ruby.

try using the --stable flag with your command, it should allow it to work as expected but let us know if it doesn't 🙏

@CodeBrotha
Copy link

CodeBrotha commented Apr 19, 2024

Same problem here. This bug was flagged previously in 3.58.0 and was fixed in 3.58.2 here is the previous issue.

It seems that fix was reverted for some reason.

@jamesmengo
Copy link
Contributor

@CodeBrotha could you please provide verbose logs and a description of the issue?

@CodeBrotha
Copy link

@jamesmengo Sorry I was busy the past few days, however I just updated to to 3.59.1 which reverted shopify theme push back to the state of your fix from version 3.58.2.

It is working as expected again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants