fatal: Not a git repository (or any of the parent directories): .git
[+] PARSING BUCK FILES...0.2s
BUILD FAILED: Parse error for build file /root/gerrit/BUCK:
NameError: global name 'genfile' is not defined
Call stack:
File "/home/dpi/Downloads/buck-master/build/classes/buck_parser/buck.py", line 1216, in process_with_diagnostics
diagnostics=diagnostics)
File "/home/dpi/Downloads/buck-master/build/classes/buck_parser/buck.py", line 1105, in process
os.path.join(self._project_root, path))
File "/home/dpi/Downloads/buck-master/build/classes/buck_parser/buck.py", line 1041, in _process_build_file
return self._process(build_env, path, is_implicit_include=False)
File "/home/dpi/Downloads/buck-master/build/classes/buck_parser/buck.py", line 975, in _process
exec(code, module.__dict__)
File "/root/gerrit/BUCK", line 3
gerrit_war(name = 'gerrit')
File "/root/gerrit/tools/build.defs", line 80, in gerrit_war
visibility = visibility,
File "/root/gerrit/tools/build.defs", line 58, in war
src.append(genfile(r))
On 27 Apr 2017, at 07:40, Ảnh Viện Wednesday <hoangn...@gmail.com> wrote:Hello,I am trying to use gitiles plugin for my gerrit system (2.13). And i already tried to use both bazel and buck.1) with buck, i followed theses step and stuck at buck build gerrit:git clone https://gerrit.googlesource.com/gerrit --recursivecd gerritgit checkout v2.8.4 -b v2.8.4git submodule updatebuck build gerrit
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Mr lucamilanesio,I already try to use stable-2.13 but there is another issue:root@dpi-VirtualBox:~/gerrit# git checkout remotes/origin/stable-2.13root@dpi-VirtualBox:~/gerrit# buck build gerritfatal: Not a git repository (or any of the parent directories): .git[+] PARSING BUCK FILES...0.7sBUILD FAILED: Parse error for build file /root/gerrit/BUCK:ImportError: Importing module traceback is forbidden. If you really need to import this module, read about the allow_unsafe_import() function documented at: https://buckbuild.com/function/allow_unsafe_import.html
Dear Mr David,Thank you so much for your guidance.But i tried to find in all my machine, there is no ".nobuckcheck" file.root@dpi-VirtualBox:~/gerrit# find / -name ".nobuckcheck" -printroot@dpi-VirtualBox:~/gerrit#So in this case, there is anything i can do?
Best Regards,
Vào 16:20:24 UTC+7 Thứ Năm, ngày 27 tháng 4 năm 2017, David Ostrovsky đã viết:
On Thursday, April 27, 2017 at 9:56:32 AM UTC+2, Ảnh Viện Wednesday wrote:Dear Mr lucamilanesio,I already try to use stable-2.13 but there is another issue:root@dpi-VirtualBox:~/gerrit# git checkout remotes/origin/stable-2.13root@dpi-VirtualBox:~/gerrit# buck build gerritfatal: Not a git repository (or any of the parent directories): .git[+] PARSING BUCK FILES...0.7sBUILD FAILED: Parse error for build file /root/gerrit/BUCK:ImportError: Importing module traceback is forbidden. If you really need to import this module, read about the allow_unsafe_import() function documented at: https://buckbuild.com/function/allow_unsafe_import.htmlWith `touch .nobuckcheck` you deactivated Buck's "Update itselfaccording to the content of .buckversion" feature and as theconsequence you have now mismatch between Gerrit build rulesand Buck version. Remove .nobuckcheck and it would work.
git clone https://github.com/facebook/buck.git cd buck ant ./bin/buck --help
root@dpi-VirtualBox:/home/gerrit2/buck-master/buck-master# buck --help
fatal: Not a git repository (or any of the parent directories): .git
buck build tool
Usage:
buck [<options>]
buck <command> --help
buck <command> [<command-options>]
Available commands:
audit lists the inputs for the specified target
build builds the specified target
cache makes calls to the artifact cache
clean deletes any generated files
distbuild attaches to a distributed build (experimental)
doctor debug and fix issues of Buck commands
fetch downloads remote resources to your local machine
help shows this screen (or the help page of the specified command) and exits.
install builds and installs an application
machoutils provides some utils for Mach O binary files
project generates project configuration files for an IDE
publish builds and publishes a library to a central repository
query provides facilities to query information about the target nodes graph
rage create a defect report
root prints the absolute path to the root of the current buck project
run runs a target as a command
server query and control the http server
suggest suggests a refactoring for the specified build target
targets prints the list of buildable targets
test builds and runs the tests for the specified target
uninstall uninstalls an APK
verify-caches Verify contents of internal Buck in-memory caches.
Options:
--help (-h) : Shows this screen and exits.
--version (-V) : Show version number.
git clone https://github.com/facebook/buck cd buck git checkout $(cat ../gerrit/.buckversion) ant