Skip to content

[5.0.0] Issues with host system temp directory for transient lcov.info file #58

@aram-yesildeniz

Description

@aram-yesildeniz

We run lcov-result-merger on a remote system, after updating to 5.0.0 we get the following error:

[Error: EXDEV: cross-device link not permitted, rename '/tmp/lcov-result-merger-abc/lcov.info' -> './coverage/lcov.info'] {
	errno: -18,
	code: 'EXDEV',
	syscall: 'rename',
	path: '/tmp/lcov-result-merger-abc/lcov.info',
	dest: './coverage/lcov.info'
}

Im posting this here as I guess that others will come across this too.
The problem is easy solvable by adding the flag legacy-temp-file, e.g.:

./node_modules/.bin/lcov-result-merger './coverage/**/lcov.info' './coverage/lcov.info' --legacy-temp-file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions