You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On MacOS root_pattern needs to be set to ["/"]. Any other value causes "No source root found for '.'" error.
Pants version
2.23.0
OS
MacOS
Additional info
/src/foo_lib/BUILD
python_sources(
name="foo_lib",
sources=["foo.py"], # Include only source files
)
python_tests(
name="foo_lib_tests",
dependencies=[":foo_lib"], # Test depends on the library
sources=["test_foo.py"], # Include only test files
)
@huonw So I made a repo and couldn't reproduce this. BUT I noticed that it fails if there's any Python file (matching *.py) in the project's root directory. If I remove it, suddenly everything works. Is it intended?
Describe the bug
On MacOS root_pattern needs to be set to ["/"]. Any other value causes "No source root found for '.'" error.
Pants version
2.23.0
OS
MacOS
Additional info
/src/foo_lib/BUILD
/pants.toml
/BUILD
Works without an issue if
root_patterns = ["/"]
.The text was updated successfully, but these errors were encountered: