ergoplatform / oracle-core

Core off-chain component of Oracle Pools
Apache License 2.0
62 stars 37 forks source link

Add warning for when git fails in build.rs #225

Closed SethDusek closed 1 year ago

SethDusek commented 1 year ago

Hi, it seems the coveralls pipeline has been failing in build.rs (git parse --show-cdup fails), which causes the program to fail to compile due to git env vars not being defined.

This PR doesn't really address the issue directly, but instead it warns of the failed command in build output, and replaces the env vars with blanks. Here's the error message from git itself inside the pipeline:

stderr = "fatal: detected dubious ownership in repository at '/w/oracle-core/oracle-core'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /w/oracle-core/oracle-core\n"

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 4125457486


Totals Coverage Status
Change from base Build 4052230392: 0.0%
Covered Lines: 2012
Relevant Lines: 3272

💛 - Coveralls