8000 GitHub - moturus/gix: Git client for Motor OS. · GitHub
[go: up one dir, main page]

Skip to content
moturusPublic

About

Git client for Motor OS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

135 Commits

Folders and files

Repository files navigation

gix for Motor OS

A small Git client for Motor OS, built on the Motor OS branch of gitoxide. The package is motor-gix:

  • its binary is the gix command, described in the gix manual;
  • its library holds the HTTPS, SSH and local transports, push, and pack maintenance that the Motor OS port of Jujutsu links.

Building

On a Linux host

rust-toolchain.toml names the Motor OS toolchain release this repository builds with. Install that release first; its installer links it into rustup under the same name. See the toolchain guide.

# Tests
cargo test --locked

# The Motor OS binary
CARGO_TARGET_X86_64_UNKNOWN_MOTOR_LINKER="$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-motor/sysroot/bin/motor-clang" \
    cargo build --release --locked --target x86_64-unknown-motor

The linker setting is required. The Motor OS target names no linker, so without it rustc links with the host's cc: the build succeeds, but the binary is linked against the host's C library and is not a Motor OS executable.

RUSTUP_TOOLCHAIN takes precedence over the file, so a build of a new toolchain release can compile this repository with the compilers it has just built.

On Motor OS

gix also builds on Motor OS itself with Lorry, the package manager in the Motor OS toolchain. Lorry reads the same Cargo.toml and Cargo.lock:

# Once, with network access: fetch and review the locked dependencies.
lorry vendor
# Offline from here on.
lorry build --release

The native tests need the native-test-support feature:

lorry vendor --workspace --features native-test-support
lorry test --features native-test-support --lib --test native-port --test cli

License

MIT or Apache-2.0, at your option.

About

Git client for Motor OS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0