这是indexloc提供的服务,不要输入任何密码
Skip to content

Windows & Yarn - prunning fails with could not construct graph error #600

@b12k

Description

@b12k

What version of Turborepo are you using?

1.0.28

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Windows

Describe the Bug

When truing to prune specific scope during docker build process operation fails with:

ERROR Could not construct graph: yarn.lock: could not unmarshal lockfile: yaml: line 6: mapping values are not allowed in this context

Dockerfile:

FROM node:alpine AS base
RUN apk update
WORKDIR /app

FROM base AS pruner
WORKDIR /app
RUN yarn global add turbo@1.0.28
COPY . .
RUN turbo prune --scope=web --docker

изображение

Potentially related to #471

Expected Behavior

Prunning should work as expected.

To Reproduce

  • Setup a boilerplate project using Yarn on Windows => npm create-turbo@latest
    • Install Docker (if none)
  • Create Dockerfile in respective folder => ./apps/web
  • Delete node_modules everywhere (or ignore them in .dockerignore)
  • Try building it from repo root using docker build . -f apps/web/Dockerfile -t turbo-web-docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions