Home / Docs / Diagnostics

U7009: Missing, invalid or inconsistent ita.lock

Release v0.4.0

The ita.lock of a package is missing, invalid or does not meet ita.una.

Why Una rejects it

A package of edition 0.4 commits ita.lock next to its ita.una (ADR 0122, spec/30). Only una ita and una migrate write it. It pins the solver, as verification.lock does for earlier editions, and, for every package of the program, its version, origin and content digest. Every command that loads the package reads it offline.

U7009 reports:

How to fix it

The repair is una ita lock, which writes the lock again.

Failing example

ita.unauna
ita demo
  version 0.1.0
  edition 0.4
src/demo.unauna
module demo

pub one() -> Int = 1

Fixed example

ita.unauna
ita demo
  version 0.1.0
  edition 0.4
ita.lockuna
-- Written by `una ita`; do not edit.
lock 1

solver
  encoding "una-smt-1"
  name "z3"
  version "5.1.0"
  logic "QF_UFLIA"
  steps 5000000
  seed 0
src/demo.unauna
module demo

pub one() -> Int = 1