colima: NixOS package missing version and git commit

Describe the Issue

Running colima version on nixpkg shows wrong version and git commit.

Version

N/A

Colima Version:

What is the output of colima version

colima version development
git commit: unknown

Lima Version:

What is the output of limactl --version

N/A

Qemu Version

What is the output of qemu-img --version

N/A

Operating System

  • macOS Intel
  • macOS m1
  • Linux

To Reproduce

Steps to reproduce the behavior:

  1. Install Colima via nixpkgs
  2. Run colima version

Expected behavior

Colima shows version and revision

Additional context

cc @aaschmid @Atemu

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

This has been fixed for 0.3.4. after upgrading to Nix 2.8.1.

$ nix --version
nix (Nix) 2.8.1

$ nix shell nixpkgs#colima

$ colima version
colima version 0.3.4
git commit: 5a4a70481ca8d1e794677f22524e3c1b79a9b4ae

$ which colima
/nix/store/nygq9gxi21b939dyvkdg2w0f5xix7gng-colima-0.3.4/bin/colima

@aaschmid should we close the issue and track the failing tests on nixpkgs repo?

Test seems to be skipped but now on my machine the following fails:

=== RUN   Test_config_Mounts
=== RUN   Test_config_Mounts/0
time="2022-05-29T18:56:33Z" level=fatal msg="cannot make required directory: mkdir /homeless-shelter: read-only file system"
FAIL    github.com/abiosoft/colima/environment/vm/lima  0.264s
FAIL

Where is the directory try to be created?

P.S.: the output for the skipped test

ok      github.com/abiosoft/colima/cmd  0.327s
=== RUN   TestStart
    daemon_test.go:31: pidfile /private/tmp/nix-build-colima-0.4.2.drv-0/TestStart2548514758/001/daemon.pid
    daemon_test.go:46: start successful
    daemon_test.go:53: daemon not supported: context deadline exceeded
--- SKIP: TestStart (5.01s)
PASS