Configuration for the
(use-package elbazel :commands elbazel-dispatch :config (add-hook 'compilation-finish-functions #'elbazel-unbox-sandbox-paths-h))
elbazel package supports Connection Local Variables which allows the user to change the variables used by
elbazel when running on a remote host.
(connection-local-set-profile-variables 'remote-elbazel '((elbazel-command . "/home/user/.local/bin/bazel") (elbazel-cache-dir . "/tmp/bazel_cache") (elbazel-buildfile-name . "BAZEL.build") (elbazel-search-with-rg . t))) (connection-local-set-profiles '(:application tramp :protocol "ssh") 'remote-elbazel)
Use the command
elbazel-dispatch to launch the dispatcher.
This package wouldn't have been possible without the awesome transient package.