3
3
Fork
You've already forked teapot_tools
1
reimplementation of depot_tools (gclient) in Rust
  • Rust 99%
  • Python 1%
Find a file
2024年02月18日 06:39:00 +01:00
proto/cipd cipd package support 2022年09月04日 20:28:17 +02:00
src fix gclient_gn_args_file with use_relative_paths=True 2024年02月18日 06:32:46 +01:00
.gitignore tests: remove the test_workspaces based tests (too flaky) 2022年09月09日 18:54:45 +02:00
.woodpecker.yml ci: remove unused dependency 2022年09月09日 20:07:08 +02:00
build.rs cipd package support 2022年09月04日 20:28:17 +02:00
Cargo.lock release v0.4.3 2024年02月18日 06:39:00 +01:00
Cargo.toml release v0.4.3 2024年02月18日 06:39:00 +01:00
LICENSE relicense to Apache-2.0 2022年07月30日 15:52:31 +02:00
README.md remove compromised contact methods 2024年02月18日 06:31:45 +01:00

teapot_tools

reimplementation of gclient from depot_tools and cipd from luci-go in Rust (or as some may call it, Python with extra steps).

why?

I was trying to get depot_tools working on my machine, only to see things like this:

./third_party/depot_tools/bootstrap_python3: line 28: cipd: command not found
./third_party/depot_tools/bootstrap_python3: line 32: bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: No such file or directory
/home/lauren/aports/testing/signal-desktop/src/webrtc-4896c/third_party/depot_tools/bootstrap_python3: line 28: cipd: command not found
/home/lauren/aports/testing/signal-desktop/src/webrtc-4896c/third_party/depot_tools/bootstrap_python3: line 32: bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: No such file or directory
cat: can't open '/home/lauren/aports/testing/signal-desktop/src/webrtc-4896c/third_party/depot_tools/python3_bin_reldir.txt': No such file or directory
[E2022-06-21T19:47:00.253814+02:00 28299 0 annotate.go:273] goroutine 1:
#0 go.chromium.org/luci/vpython/venv/config.go:309 - venv.(*Config).resolvePythonInterpreter()
 reason: none of [/home/lauren/aports/testing/signal-desktop/src/webrtc-4896c/third_party/depot_tools//python3] matched specification 3.8.0
#1 go.chromium.org/luci/vpython/venv/config.go:153 - venv.(*Config).resolveRuntime()
 reason: failed to resolve system Python interpreter
#2 go.chromium.org/luci/vpython/venv/venv.go:143 - venv.With()
 reason: failed to resolve python runtime
#3 go.chromium.org/luci/vpython/run.go:60 - vpython.Run()
#4 go.chromium.org/luci/vpython/application/application.go:327 - application.(*application).mainImpl()
#5 go.chromium.org/luci/vpython/application/application.go:416 - application.(*Config).Main.func1()
#6 go.chromium.org/luci/vpython/application/support.go:46 - application.run()
#7 go.chromium.org/luci/vpython/application/application.go:415 - application.(*Config).Main()
#8 vpython/main.go:112 - main.mainImpl()
#9 vpython/main.go:118 - main.main()
#10 runtime/proc.go:225 - runtime.main()
#11 runtime/asm_amd64.s:1371 - runtime.goexit()

I looked at these errors, at the DEPS file, and got the impression that it's gonna be easier to rewrite it than to get it running.

dependencies

listed as alpine package names, should be similar on wherever

build:

  • openssl-dev
  • protoc
  • python3-dev
  • rust

runtime:

  • git
  • python3 (libpython3)

mirrors

security considerations

Do NOT run on untrusted projects.

  • DEPS file is literally Python code run on a Python interpreter, it possibly can run some malicious code.
  • DEPS file contains hooks that are supposed to (not implemented yet) be run before/after cloning dependencies, they can be malicious code.

Please only report security issues by e-mail: security at selfisekai dot rocks.

copyright 2022 Lauren N. Liberda, usage allowed under the terms of Apache-2.0 license