Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]: Error during deployment of the new app #5367

Open
2 tasks done
ilya-faynberg opened this issue Feb 6, 2025 · 1 comment
Open
2 tasks done

[Bug]: Error during deployment of the new app #5367

ilya-faynberg opened this issue Feb 6, 2025 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@ilya-faynberg
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?

Extension

Expected behavior

App should be updated with any new extensions

Actual behavior

Github ci job fails when trying to add new customer account extension (order.index). It fails due to mismatch between the names:
local name - customer-account-ui
remote name - pos-ui-2
pos-ui-2 was never created as customer account extension.
This is production, for staging app it is not happen.
How it can be solved?

Verbose output

Verbose output

Image

Reproduction steps

  1. Create a new extension under a different app config locally
  2. Deploy the extension to a separate app config via CI/CI
  3. The app attempting to be updated via CI/CD errors as it can't identify the new extension

Operating System

Ubuntu

Shopify CLI version (shopify --version)

Latest

Shell

No response

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

v18.20.2

What language and version are you using in your application?

Typescript 5.4.5

@ilya-faynberg ilya-faynberg added the Type: Bug Something isn't working label Feb 6, 2025
@gordonhirsch
Copy link
Contributor

gordonhirsch commented Feb 7, 2025

Hi @ilya-faynberg, the additional prompting you see can occur if we are unable to automatically match locally defined extensions against our current understanding of the app's extensions from the active version.

To solve this issue, you can take the following steps:

  • Run app deploy once interactively (not in CI) and respond to the prompts to properly match local -> remote extensions.
  • Environment variables of the form <extension-name>_UUID will be written to your local .env file. These values will be used on future app deploy commands to match extensions without further prompting.
  • Make these variables available to your CI process, either by committing the .env file or by explicitly setting them in your CI environment

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants