Open plinto
Docs›Concepts

Version groups

Concept·5 min read
In one sentence

A version group pins one exact version of every package, and every project that uses the group builds with exactly those.

It's likea branch in git, where each change is a new revision
You name itin your workspace, as main@202
It lives inyour organization, which starts with main

Why it exists

Without one, every repository picks its own versions. Two services end up on two versions of the same library, and the JDK is whatever the build machine has. With a group, each version is decided once, in one place, for every project, and the toolchains are pinned like the libraries.

See it change

Your team's group is main. Your workspace builds two projects, MyLib and MyService. Click through what happens as people work.

main jdk-26 1 2 Java 26 merge your workspace main@201
main · revision 201
what every build with main@201 gets
the same for every project that uses it

    

Revisions

Every change to a group makes a new revision: a build that releases, an import, a pointer that moves, a merge. A revision never changes once it is made, so main@202 means the same pins today and in a year.

Your workspace names one revision, and stays on it until you move it. When the group has moved on, every build says so:

$ plinto build
Version group main has moved on to revision 203: `plinto update` moves the workspace to it

plinto update moves it to the newest revision, and lists what changes; plinto update <revision> moves it to any other one, older ones too:

$ plinto update
Moved plinto-workspace.conf from revision 201 of main to 202
  MyLib 1.0-3 → 1.0-4 (declared here)
  MyService 1.0-7 → 1.0-8 (declared here)

The command line shows each release's full number; the apps show it as 1.0 (e4f5a6b), its line and the commit it was built from. Revisions are numbered across your organization's groups, so one group's numbers can skip.

Pointers: Java = 25

A project doesn't name the exact JDK. It says Java = 25, and the group points 25 at one exact release. When the next patch comes out, the group moves the pointer once and every project gets it, without anyone editing a plinto.conf.

Your plinto.conf says main@202 pins main@203 pins
Java = 25 25.0.4.10.1 25.0.5.11.1
Guava = 33.7.2-jre 33.7.2-jre 33.7.2-jre
MyLib = 1.0 1.0 (e4f5a6b) 1.0 (e4f5a6b)

A version must match a pin. A plinto.conf names either an exact version the group has, or a line it points somewhere. Anything else fails, and the error says what the group has:

HelloApp needs Guava 34, but version group main pins Guava 33.7.2-jre

Getting a new version into the group is an import. See Version rules.

A group of your own

A group made from main is a place to try something without stopping anyone: a new JDK, a big upgrade, a team that wants to move at its own speed. It starts with main's pins, and keeps up by merging main's changes in.

What it is not

Not a lockfile. One group serves every project of your team, so there is no lockfile per repository to keep up to date, and no two services quietly on two versions.

Not "latest". Nothing in plinto means "the newest". A build gets what its revision pins, so the same commit builds the same way next month.

Common questions

Why is my build using an old version?

Your workspace names a revision, and stays on it. plinto update moves it to the group's newest one, and every build says when the group has moved on.

Can two projects use two versions of one library?

Of a Maven artifact, an npm package or a toolchain, yes: a group can hold several, and each project names the one it uses. Of a Go module, a crate, a PyPI project or a Hex package, a group holds one version.

How do I get a newer version of a library?

It has to be in the group first. If someone already imported it, plinto update brings it; otherwise import it, which makes a new revision.