flakereg

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package flakereg explains Nix flake.lock changes from what the lockfile already records — fully offline, zero requests:

  • ages and the ⏱ fresh flag come from the pinned revision's own commit timestamp (flake.lock's lastModified, which the parser embeds in the "<date>.<shortrev>" version it synthesizes);
  • rev...rev compare links come from the locked repository attrs (github/gitlab/git URLs), written verbatim — commit revisions address themselves, so no tag verification is needed.

The narHash integrity check (same revision, different tree = REPINNED) and the re-pointed-repository surface live in the generic pins machinery (internal/diffx); this layer only adds what needs the version string decoded.

Because everything is local, it runs even with -offline/-no-meta, in the browser build, and never produces warnings.

Index

Constants

This section is empty.

Variables

View Source
var Now = time.Now

Now is stubbed in tests.

Functions

func Annotate

func Annotate(diffs []diffx.FileDiff, freshDays int)

Annotate fills ages and compare links on Nix flake input changes. freshDays mirrors the -fresh-days flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL