arr-ai / arrai

The ultimate data engine.
http://arr.ai
Apache License 2.0
20 stars 15 forks source link

fix #598, change import root implementation #608

Closed nofun97 closed 4 years ago

nofun97 commented 4 years ago

Root of the import is determined by the arraiRootMarker (currently go.mod file). If arraiRootMarker isn't found, it uses the source file directory as the import root. This commit also fix the import filepath for imports from root.

Checklist:

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 62a7491684617dc69e13d0d3a0123ad74635fb3e-PR-608


Changes Missing Coverage Covered Lines Changed/Added Lines %
syntax/import.go 1 3 33.33%
<!-- Total: 5 7 71.43% -->
Files with Coverage Reduction New Missed Lines %
rel/value_set_str.go 4 58.25%
<!-- Total: 4 -->
Totals Coverage Status
Change from base Build 1f7999e31ff7fc1511302f1edd0edf238216f746: 0.04%
Covered Lines: 4795
Relevant Lines: 9881

💛 - Coveralls