lima-vm / lima-vm/lima

`make bats` fails without tags

Open
#5,028 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

BATS tests fail in a formed repository if tags are not fetched.
For example, one of the failed output looks like as follows:

```not ok 5 copy file from host to Lima instance (scp) in 595ms
# (from function `__assert_stream' in file hack/bats/lib/bats-assert/src/assert_output.bash, line 244,
# from function `assert_output' in file hack/bats/lib/bats-assert/src/assert_output.bash, line 125,
# from function `test_copy_file_from_host_to_instance' in file hack/bats/tests/copy.bats, line 90,
# in test file hack/bats/tests/copy.bats, line 96)
# `test_copy_file_from_host_to_instance scp' failed
# time="2026-05-23T00:34:58+01:00" level=warning msg="treating lima version \"e7847217\" from \"/home/mie313/.lima-bats/bats/lima-version\" as very latest release"
# time="2026-05-23T00:34:59+01:00" level=warning msg="treating lima version \"e7847217\" from \"/home/mie313/.lima-bats/bats/lima-version\" as very latest release"
#
# -- output differs --
# expected (1 lines):
# hello
# actual (2 lines):
# time="2026-05-23T00:34:59+01:00" level=warning msg="treating lima version \"e7847217\" from \"/home/mie313/.lima-bats/bats/lima-version\" as very latest release"
# hello
# --
#
```
Ref: https://cloud-native.slack.com/archives/C043N6ZFV9S/p1779488354521389

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `make bats` in a repository where tags are not fetched, then start with `hack/bats/tests/copy.bats` and the referenced assertion files under `hack/bats/lib/bats-assert/src/`. Use the reported version warning and failing `scp` test to trace the behavior; done means the BATS suite passes without fetched tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.