sapling/eden/cli/TARGETS
Chad Austin b6b2a08998 unmount stale edenfs mounts in eden doctor
Summary:
If the Eden process dies or malfunctions, it's possible to end up with stale
edenfs mounts on the system.  Change `eden doctor` to correct them.

Reviewed By: simpkins

Differential Revision: D6659193

fbshipit-source-id: d9fcf2e68663295e4f43b2c11fd4503a1dfac038
2018-01-19 11:06:51 -08:00

65 lines
1.3 KiB
Plaintext

include_defs("//eden/DEFS")
python_binary(
name = "cli",
srcs = ["main.py"],
check_types = True,
main_module = "eden/cli/main",
deps = [
":debug",
":lib",
"//eden/fs/service:py-client",
],
)
python_library(
name = "lib",
srcs = [
"cmd_util.py",
"config.py",
"configinterpolator.py",
"doctor.py",
"mtab.py",
"rage.py",
"stats.py",
"stats_print.py",
"util.py",
"version.py",
],
check_types = True,
deps = [
"//eden/fs/service:py-client",
"//eden/py:py",
],
external_deps = [
"toml",
],
)
python_library(
name = "debug",
srcs = [
"debug.py",
],
check_types = True,
deps = [
":lib",
"//eden/fs/inodes:serialization-py",
"//eden/py:py",
],
)
for build_target, suffix in get_daemon_versions():
# The :all rule is a convenience to ensure that the CLI, daemon, and Thrift
# Python client for the Hg extension are built.
buck_genrule(
name = 'all%s' % suffix,
srcs = [
':cli',
build_target,
'//eden/fs/service:thrift-EdenService-pyremote',
],
out = 'eden%s-stamp' % suffix,
cmd = 'touch $OUT',
)