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

encore eject docker image:tag breaks when calling from different drive #1373

Open
ryanocf opened this issue Sep 5, 2024 · 0 comments
Open

Comments

@ryanocf
Copy link

ryanocf commented Sep 5, 2024

encore eject docker ... breaks when calling from different drive

Environment

OS: Windows 23H2 (Build 22631.4037)
Encore: v1.40.4
Node: 22.4.1
NPM: 10.8.2
Docker Desktop: 4.33.1

Expected output

  • compiled docker image

Actual output

7:21PM INF compiling Encore application for linux/amd64
7:21PM ERR build docker image: build image fs: copy path: Rel: can't make C:\Users\admin\.encore\runtimes\js\encore.dev relative to D:\Projects\encore-file-upload\node_modules

Reproduce steps

  1. Install encore via the docs
  2. Create an app via encore app create on a different drive than encore is installed with Typescript
  3. Call encore eject docker image:tag

But if you would now just copy the app folder to the same drive encore is installed on, it works just fine.
So to visually show the problem:

WORKS

.
└── C:/
    ├── 📁User/
    │   └── 📁admin/
    │       └── 📁.encore/
    │           └── ...
    └── 📁encore-test-app/
        └── ...

DOESN'T WORK

.
├── C:/
│   └── 📁User/
│       └── 📁admin/
│           └── 📁.encore/
│               └── ...
└── D:/
    └── 📁encore-test-app/
        └── ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant