dry-analyst-73584
01/20/2022, 5:39 PM[tailor]
ignore_paths = ["/scripts"]
ignore_adding_targets = ["/scripts/**"]
hundreds-father-404
01/20/2022, 5:42 PM[tailor]
ignore_paths = ["scripts/**"]`
ignore_adding_targets
does not work with globsdry-analyst-73584
01/20/2022, 5:44 PM./v2pants tailor --check ā 130 PantsPrototype ā ā ā±
12:52:04.52 [ERROR] 1 Exception encountered:
Exception: While expanding link "scripts/python/query/synonyms/csv_unicode.py": Globs may not traverse outside of the buildroot: "scripts/python/query/synonyms/../../../../../scripts/search/csv_unicode.py"
[GLOBAL]
pants_version = "2.9.0rc2"
build_patterns = [
"BUILD.V2",
]
build_ignore = [
"scripts/**",
]
backend_packages = [
"pants.backend.python"
]
[source]
root_patterns = [
'/src/python',
'/test/python',
]
[tailor]
ignore_paths = ["scripts"]
build_file_name = ["BUILD.V2"]
happy-kitchen-89482
01/20/2022, 5:56 PMBUILD.V2
because v1 (IIRC) reads BUILD.* by default. So I would go with BUILD2
or somethingdry-analyst-73584
01/20/2022, 5:56 PMpants_ignore = [
"scripts/**",
]
happy-kitchen-89482
01/20/2022, 5:57 PMdry-analyst-73584
01/20/2022, 6:02 PM./v2pants tailor --check ā 1 PantsPrototype ā ā ā±
12:58:46.47 [ERROR] 1 Exception encountered:
ValueError: The option `[tailor].build_file_name` is set to `["BUILD2"]`, which is not compatible with `[GLOBAL].build_patterns`: ['BUILD2']. This means that generated BUILD files would be ignored.
To fix, please update the options so that they are compatible.
New error./v2pants tailor --tailor-build-file-name="BUILD2" --check ā 1 PantsPrototype ā ā ā±
13:09:27.51 [ERROR] 1 Exception encountered:
NoSourceRootError: No source root found for `build-support/docker/docker_service_entrypoint.py`. See <https://www.pantsbuild.org/v2.9/docs/source-roots> for how to define source roots.
MappingError: Failed to parse ./3rdparty/python/BUILD2:
__call__() got an unexpected keyword argument 'name'
The build file contents are:
python_requirements(
name="requirements.txt",
)
which look normal to me?hundreds-father-404
01/20/2022, 6:42 PMname=
partdry-analyst-73584
01/20/2022, 6:43 PMhundreds-father-404
01/20/2022, 6:44 PMdry-analyst-73584
01/20/2022, 6:45 PMhappy-kitchen-89482
01/20/2022, 7:07 PM[tailor].build_file_name
to a list and not a string?dry-analyst-73584
01/20/2022, 7:51 PMThe target src/python/fsluigi/task/visitdata/third_party/matched_visits.py imports `<http://dateutil.tz|dateutil.tz>`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['3rdparty/python:python-dateutil', 'build-support/foursquare/lambda/aws-merge-pipeline:python-dateutil', 'src/python/fsluigi/task/normalization_eval:python-dateutil'].
hundreds-father-404
01/20/2022, 8:03 PM