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

feat: try to get path to config-file from CARGO_TARPAULIN_CONFIG_FILE #1633

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

sivizius
Copy link
Contributor

With this commit, tarpaulin will try to get the path to the configuration file (usually tarpaulin.toml) from the environment variable CARGO_TARPAULIN_CONFIG_FILE first, before proceeding with trying tarpaulin.toml and .tarpaulin.toml. The motivation of this PR is, that I have multiple repositories with the same tarpaulin-config. With https://direnv.net/, I am able to set environment variables, which would allow me to set CARGO_TARPAULIN_CONFIG_FILE, thus avoiding duplicate configurations. Symlinks are not really an option with repositories.

@xd009642
Copy link
Owner

Had a brief look and it seems fine, I've been on holiday for the week after eurorust so I'll properly look at this tomorrow and merge it if it's all good 👍

@xd009642 xd009642 merged commit b412e8e into xd009642:develop Oct 21, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants