Skip to content

Can't manage to have outs=[] working in a gentest target #3374

@mgraff

Description

@mgraff

Provided the simplest gentest rule possible:

gentest(
    name = 'test',
    outs = [ "test.log" ],
    test_cmd = "touch ${OUT}",
)

If a try to output some files from this target, I get this error:

error moving outputs for target //:test: rule //:test failed to create output plz-out/tmp/test._build/test.log

The error seems to happen before the test_cmd is executed.
The directory plz-out/tmp/test._build/ exists and the permissions are correct.

The logs, even with the maximum verbosity are helpless.

Do you have any clue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions