-
Notifications
You must be signed in to change notification settings - Fork 140
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]: deployment of extensions fails when run from non interactive cli #2941
Comments
Hey @xoko14 👋 !. Thanks for rising up this issue. I have not been able to reproduce this. Here it's a sample
could you give me more details about your Docker config?. Thanks in advance |
Regarding this, we'll create a fix. Sorry for inconveniences |
I'm experiencing this issue with this dockerfile. I removed lines related to configuring SSH. This Docker image gets built from an Azure Pipeline. FROM node:18-alpine
ARG cli_token
EXPOSE 3000 2222
WORKDIR /app
COPY . .
ENV SHOPIFY_CLI_PARTNERS_TOKEN=$cli_token
RUN apk add --no-cache curl
RUN apk add --no-cache rust-wasm cargo
RUN cargo install cargo-wasi
RUN apk add --no-cache ruby-dev make gcompat
RUN gem install bundler
RUN npm install
RUN npm run build
RUN npm run deploy -- -f
CMD npx prisma migrate deploy; npm run start |
hey @xoko14 , could you try removing the line |
I can try to delete it, but I think it's needed to build the remix web app so that |
@xoko14, you are right I missed the line |
Sorry, maybe I wasn't clear enough in the first post. The project I'm having trouble with only has Rust functions. |
This should be fixed in the next release. In the meanwhile, it should work if you use the version 3.49.5. |
This should be fixed on version 3.50, closing the issue now :) |
I'm seeing this issue come back up. Here's my Dockerfile:
If you run the container and do:
It fails with a similar error:
Here are my module versions:
When I try to run
In my case our functions are written in TypeScript. Update: This is probably a Javy issue. Fixed by just using |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension, Function, Other
Expected behavior
Deployment of functions should succeed when run from a non interactive shell.
Actual behavior
When deploying any number of functions, the cli runs
javy --version
as implemented on #2911. This causes the command to fail when run from docker even though the output from javy seems to be correct. This was not an issue before #2911. This also happens when all the functions are written in Rust even though Rust functions don't need javy.Output example (this was run from a Dockerfile):
Reproduction steps
javy --version
Operating System
Ubuntu 20.04
Shopify CLI version (check your project's
package.json
if you're not sure)3.49.6
Shell
bash, nushell
Node version (run
node -v
if you're not sure)v18.17.1
What language and version are you using in your application?
Node 18.17.1, Rust 1.72.0
The text was updated successfully, but these errors were encountered: