Lore
Lore is Epic Games' version control for large projects. Mango works with Lore repositories in the same Changes view, diffs, branch popup and Git log it uses for git, through your own lore command-line client. It can also set up and run Lore servers for you.
Requirements
- The
loreCLI. Settings > Version control > Lore shows whether it is installed. Mango installs a missing one with Epic's own installer, in a terminal you watch. Get started offers it too. - A sign-in, where the server wants one. Sign in with
lore login; Mango runs it in a terminal and never sees a token.
How Mango detects a repository
A folder inside a Lore repository (it has a .lore folder) is a Lore project, on this computer or inside a remote environment.
What works
- Changes: each refresh scans the working tree, as
lore status --scandoes. Stage and unstage, discard, and commit. - Amend the message of a revision that is not pushed yet.
- Pull runs
lore sync, which merges when the branch has diverged. Push also publishes a new branch. - History: the revision history in the Git log, with each revision's files and diffs. Revisions show as
r12; the server's side of a branch shows asremote/<branch>. - Branches: switch, create, merge and delete. Deleting archives the branch on the server for everyone.
- Locks, as for Unity VCS: who holds what, lock a file, release your own.
Lore has no rebase, branch rename, worktree chats, pull requests or releases, so Mango leaves them out for Lore projects.
Create, clone and convert
- New project offers Git, Lore or None. Lore creates the repository on a saved server (named after the project, editable) or only in the folder (offline). If the server can't be reached or wants a sign-in, Mango says so in plain words.
- Clone repository takes a
lore://server/repositoryaddress. - An existing project becomes a Lore repository with Create Lore repository… (the project menu, the command palette, or the Changes view of a folder without version control; projects on this computer only). Pick a saved server or this computer only, and a repository name. The files stay as they are and show as new.
Lore reads only .loreignore. When the folder has none, Mango offers one to edit first:
- made from its
.gitignoreand Unity VCS'signore.conf(regex rules Lore can't read become globs or are left out with a comment, and.git/and.plastic/are ignored), or - Unity's usual rules, for a Unity project.
An existing .loreignore is never replaced. A Unity VCS workspace shows as Lore from then on; a git repository keeps showing as git.
In an environment, creating and cloning run the Lore CLI inside it, signed in there; the environment needs the Lore component.
Lore servers
Settings > Version control > Lore lists the servers you saved: lore://host, or lore://host:port when the port isn't 41337. Each is checked from this computer:
- whether the name resolves,
- whether it answers, and on which port it does not (Lore needs TCP for listing and creating, and UDP, QUIC, for file data, on the same port),
- whether it wants you to sign in. Some servers need no sign-in, and Mango says so.
Sign in runs lore login in a terminal right there.
Your own Lore server on a Linux machine
A Lore server runs on a machine in Environments: Add machine there with the Lore server component ticked (Set up a server… in Settings > Version control > Lore opens that same dialog), or Set up… in the Lore server section of a machine already there.
- Mango looks first. With keys, it checks the machine (Docker, Incus, systemd, sudo, its addresses) without changing anything. With a password it can't, and you decide.
- Pick how it runs: in Docker (Epic's own server image, pinned by digest; x86_64) or as a systemd service (the pinned, checksum-checked release).
- Pick the address and port it listens on. Its HTTP endpoint stays off.
Every step runs in a terminal in the dialog. The machine's own setup signs in to your account, where ssh asks for the machine's password and sudo for yours; the Lore server then runs as the machine's agent user, which needs no password. Mango never sees or keeps a password. It joins Settings > Version control > Lore, where its row leads back to the machine.
The Lore server section on the machine's page shows how it runs, where it listens and its address for clients, with Change…, Update, Restart and Remove from the machine. Removing asks first and keeps the data: the mango-lore-data volume or /var/lib/lore.
A machine with Incus can be an Incus server instead, where the Lore server gets its own container.
Lore servers set up on a machine by Mango 0.14 or earlier move to Environments by themselves: each machine becomes a single machine there, with its Lore server and a key Mango made for it. Until that machine is set up (Set up… on its page), its Lore server is updated, restarted and removed as before, signing in to your own account.
A Lore server in an environment
Tick the Lore server component when you create an environment. It runs as a service with its data in /var/lib/lore, a pinned release checked against its SHA-256.
The other environments on that server reach it right away at lore://<name>.incus. To reach it from this computer and anywhere else, tick Reachable from outside this server (or Publish… on its page later) and pick:
- An address of the server. Its Tailscale address comes first, then a private one. All addresses, or a public one, come with a warning: without sign-in, whoever reaches the server can read and write.
- A port, 41337 unless you change it.
Mango forwards UDP (what the CLI speaks) and TCP on that port into the environment and says whether this computer reaches it. When ufw, firewalld or an nftables rule on the server would block it, Mango shows the command that opens the port; it never changes a firewall itself. A cloud provider's security group has to allow the port too.
The Lore server section on the environment's page has both URLs to copy, Stop publishing and Use as Lore server.
Sign-in for your Lore server
Lore's server has no passwords of its own. A server Mango set up, on a machine or in a published environment, can require sign-in. Mango installs two programs beside it, both pinned and checksum-checked:
- Dex decides who may sign in: people with a password, and/or members of GitHub organisations through your own GitHub OAuth app.
- Caddy gets a Let's Encrypt certificate for a domain that points at the server, over ports 80 and 443. The Lore server uses the same certificate, and picks up renewals hourly.
Without a domain, Mango offers an sslip.io name for a public IPv4 address.
Clients then use lores://your.domain:41337 and sign in with lore login. The port is part of the address: without one, lores:// means 443, where the sign-in pages answer.
- Sign in on this computer, on the environment's page, saves the server and runs
lore loginright there. - Sign in in New project's Lore choice opens Settings > Version control > Lore with it already running.
Passwords and the GitHub client secret are typed in the terminal on the server, never in Mango. Users are added and removed from the same place.