witty-crayon-22786
02/04/2020, 7:44 PMwitty-crayon-22786
02/04/2020, 7:45 PMTraceback (most recent call last):
File "./fix_deprecated_globs_usage.py", line 310, in <module>
main()
File "./fix_deprecated_globs_usage.py", line 33, in main
possibly_new_build = generate_possibly_new_build(build)
File "./fix_deprecated_globs_usage.py", line 187, in generate_possibly_new_build
original_text = build_file.read_text()
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1206, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1193, in open
opener=self._opener)
IsADirectoryError: [Errno 21] Is a directory: 'src/scala/com/twitter/example/BUILD'witty-crayon-22786
02/04/2020, 7:45 PMwitty-crayon-22786
02/04/2020, 7:48 PMbuild file (it's OSX, so case shouldn't matter, but i think the filesystem preserves what is stored, so should ensure that you don't normalize that)hundreds-father-404
02/04/2020, 7:50 PMbuild file? Should that be updated?witty-crayon-22786
02/04/2020, 7:51 PMwitty-crayon-22786
02/04/2020, 7:51 PMwitty-crayon-22786
02/04/2020, 7:52 PMhundreds-father-404
02/04/2020, 7:52 PMPath.rglob("BUILD"). I’ll see if there’s a way to make that case sensitivewitty-crayon-22786
02/04/2020, 7:52 PMwitty-crayon-22786
02/04/2020, 7:52 PMhundreds-father-404
02/04/2020, 7:53 PMwitty-crayon-22786
02/04/2020, 7:53 PMTraceback (most recent call last):
File "./fix_deprecated_globs_usage.py", line 314, in <module>
main()
File "./fix_deprecated_globs_usage.py", line 33, in main
possibly_new_build = generate_possibly_new_build(build)
File "./fix_deprecated_globs_usage.py", line 196, in generate_possibly_new_build
target.value for target in ast.parse(original_text).body
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 3
SOURCE_ROOT=$(git rev-parse --show-toplevel)
^
SyntaxError: invalid syntaxwitty-crayon-22786
02/04/2020, 7:53 PMhundreds-father-404
02/04/2020, 7:54 PMwitty-crayon-22786
02/04/2020, 7:55 PMhundreds-father-404
02/04/2020, 7:55 PMwitty-crayon-22786
02/04/2020, 7:57 PMwitty-crayon-22786
02/04/2020, 7:58 PMwitty-crayon-22786
02/04/2020, 7:58 PMhundreds-father-404
02/04/2020, 7:59 PMcurl -L -o fix_deprecated_globs_usage.py <https://raw.githubusercontent.com/pantsbuild/pants/846871ae57021764ac35d0046269828588e8a2b9/build-support/migration-support/fix_deprecated_globs_usage.py>?witty-crayon-22786
02/04/2020, 8:01 PMwitty-crayon-22786
02/04/2020, 8:04 PMwitty-crayon-22786
02/04/2020, 8:04 PMwitty-crayon-22786
02/04/2020, 8:04 PMwitty-crayon-22786
02/04/2020, 8:04 PMwitty-crayon-22786
02/04/2020, 8:04 PMhundreds-father-404
02/04/2020, 8:05 PMwitty-crayon-22786
02/04/2020, 10:26 PM