Commands: toolchain

The toolchain is the Histos you run: the script on your PATH, the jars under ~/.histos/toolchains, and the optional native client. The Install page walks through getting the script onto the machine. These commands manage what is already there.

histos.publish.LauncherPin.update
  /** Resolve the channel and write the timestamp Coursier selected. */
  def update(repo: Path): IO[LauncherError, LauncherPin] =
    ZIO
      .attempt(coursier.cache.CacheDefaults.location.toPath)
      .orElseFail(LauncherError.Io(IoFailure(Path.of("coursier-cache"), IoFault.Stat)))
      .flatMap(cache => updateAt(repo, cache))

toolchain install

histos toolchain install <version> downloads one toolchain. --client also links the native client. --no-client skips it. Passing both fails. If you have no default yet, this command records the version you installed as the default.

toolchain client

histos toolchain client links histos-client beside the jar you are running. CI refuses the command with no flags, because CI is expected to use java -jar unless the job opted in with toolchain install --client.

toolchain list

histos toolchain list prints the versions installed under ~/.histos/toolchains.

update

histos update moves you to a newer Histos. Inside a project it rewrites build.properties and then runs version on that pin, so you see the toolchain you just selected. --make-default also writes ~/.histos/default. A release pin moves to the newest release. A pin that ends in -SNAPSHOT, including a commit coordinate, defaults to --follow, which writes the newest line pointer. --freeze writes the timestamp that pointer's channel file names now. A timestamp pin defaults to --freeze. --follow and --freeze are opposites.

A project that commits generated workflows runs histos workflow --update next and commits what it writes. That follows a release update and a snapshot update. The CI page says why.

self update

histos self update replaces the installed script when the published sha256 differs. The toolchains stay.