abiosoft / abiosoft/colima

Setting LIMA_WORKDIR breaks `colima start`

Đang mở
#1,048 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

When you have `LIMA_WORKDIR` set to a path that is not in the colima VM, it breaks running `colima start`

For example:
```❯ LIMA_WORKDIR=/home/username.linux/git colima start --cpu 6 --memory 8 --mount-type virtiofs --vm-type=vz --vz-rosetta
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] creating and starting ... context=vm
WARN[0025] error caching dependencies for mantic-debs: error retrieving OS version from vm: error running [lima sh -c grep "^UBUNTU_CODENAME" /etc/os-release | cut -d= -f2], output: "bash: line 1: cd: /home/eabrpar.linux/git: No such file or directory", err: "exit status 1" context=vm
WARN[0025] falling back to normal package install context=vm
> bash: line 1: cd: /home/eabrpar.linux/git: No such file or directory
FATA[0026] error starting vm: error at 'creating and starting': error installing packages using mantic-debs: exit status 1
```

Unsetting `LIMA_WORKDIR` fixes the issue.

Colima should probably unset `LIMA_WORKDIR` to prevent this from causing issues.

### Version

colima version 0.6.9
git commit: c3a31ed05f5fab8b2cdbae835198e8fb1717fd0f
limactl version 0.22.0
qemu-img version 9.0.1
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

### Operating System

- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [X] Apple Silicon >= 14 (Sonoma)
- [ ] Linux

### Output of `colima status`

❯ colima status
FATA[0000] error retrieving current runtime: empty value

### Reproduction Steps

```
LIMA_WORKDIR=/home/username.linux/git colima start --cpu 6 --memory 8 --mount-type virtiofs --vm-type=vz --vz-rosetta
```

### Expected behaviour

I expect the colima vm to start

### Additional context

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.