-
Notifications
You must be signed in to change notification settings - Fork 929
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
...
7.863 ➤ YN0013: │ zundo@npm:2.0.0-beta.15 can't be found in the cache and will be fetched from the remote registry
7.863 ➤ YN0013: │ zustand@npm:4.3.7 can't be found in the cache and will be fetched from the remote registry
7.863 ➤ YN0013: │ zwitch@npm:2.0.4 can't be found in the cache and will be fetched from the remote registry
46.81 ➤ YN0066: │ typescript@patch:typescript@npm%3A4.9.4#~builtin<compat/typescript>::version=4.9.4&hash=d73830: Cannot apply hunk #12
68.11 ➤ YN0000: └ Completed in 1m 8s
68.15 ➤ YN0000: ┌ Link step
77.43 ➤ YN0007: │ yarn@npm:1.22.19 must be built because it never has been before or the last one failed
77.43 ➤ YN0007: │ protobufjs@npm:6.11.3 must be built because it never has been before or the last one failed
77.43 ➤ YN0007: │ esbuild@npm:0.17.18 must be built because it never has been before or the last one failed
77.58 ➤ YN0007: │ root-workspace-0b6124@workspace:. must be built because it never has been before or the last one failed
98.19 ➤ YN0009: │ root-workspace-0b6124@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-66b83765/build.log)
98.19 ➤ YN0000: └ Completed in 30s 38ms
98.28 ➤ YN0000: Failed with errors in 1m 38s
------
failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn --immutable; \telif [ -f package-lock.json ]; then npm ci; \telif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \telse echo \"Warning: Lockfile not found. It is recommended to commit lockfiles to version control.\" && yarn install; \tfi" did not complete successfully: exit code: 1To Reproduce
Steps to reproduce the behavior:
ARG APP_DIR="/usr/src/StableStudio"
FROM node:20.5.1-bookworm-slim AS base
FROM base AS builder
ARG APP_DIR
WORKDIR ${APP_DIR}
RUN set -e \
&& apt update \
&& apt install -y --no-install-recommends \
ca-certificates \
wget \
&& wget -q -P . "https://github.com/Stability-AI/StableStudio/archive/refs/heads/main.tar.gz" \
&& tar -xf ./main.tar.gz -C . --strip-components=1 \
&& rm ./main.tar.gz \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies based on the preferred package manager
# Omit --production flag for TypeScript devDependencies
RUN \
if [ -f yarn.lock ]; then yarn --immutable; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
# Allow install without lockfile, so example works even without Node.js installed locally
else echo "Warning: Lockfile not found. It is recommended to commit lockfiles to version control." && yarn install; \
fiExpected behavior
To run the build.
Does it even need to use Yarn? I feel like an unneeded overhead, NPM can manage workspaces without problems.
Desktop (please complete the following information):
- OS: WSL2
- Docker Yarn: 1.22.19
EleRam and lautaropaske
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working