Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepend target if no explicit target directory is set #350

Closed
wants to merge 1 commit into from

Commits on Feb 26, 2024

  1. Prepend target if no explicit target directory is set

    This commit prepend `target` to the profile target directory path, if no
    explicit target is set. This is necessary to allow using a custom
    `--profile` flag via `cargo llvm-cov report`. Without this change I get
    the following error message:
    
    ```
    $ cargo llvm-cov report --profile test-jenkins
    warning: not found object files (searched directories: /builds/test-project/target/llvm-cov-target/test-jenkins); this may occur if show-env subcommand is used incorrectly (see docs or other warnings), or unsupported commands are used
    No filenames specified!
    ```
    
    This can be worked around at the calling site by using
    `target/test-jenkins` as profile name. That means calling `cargo
    llvm-cov --profile target/test-jenkins` seems to work fine.
    weiznich committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    963f513 View commit details
    Browse the repository at this point in the history