lima icon indicating copy to clipboard operation
lima copied to clipboard

Convert limayaml functions to use pointer

Open afbjorklund opened this issue 1 year ago • 1 comments

Add a simple unit test for some coverage

afbjorklund avatar May 12 '24 10:05 afbjorklund

Interesting failure, on Windows:

    validate_test.go:25: assertion failed: error is not nil: field `mounts[1].location` must be an absolute path, got "/tmp/lima"

Apparently using the "wrong" path.

i.e. it probably needs some TMPDIR

https://pkg.go.dev/os#TempDir

On Unix systems, it returns $TMPDIR if non-empty, else /tmp. On Windows, it uses GetTempPath, returning the first > non-empty value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory. On Plan 9, it returns /tmp.

afbjorklund avatar May 12 '24 10:05 afbjorklund

Could you explain the purpose of this?

AkihiroSuda avatar May 18 '24 11:05 AkihiroSuda