Will it do the same thing tomorrow?
Available — v0.0.1 (experimental)cli
Lock what you ran
A lockfile pins every reference to an exact version and an integrity hash. A locked run refuses anything that changed.
Available in v0.0.1: the files, README and tests are in examples/email of the openflange-go repository. Commands run from the repository root.
Needs: only the openflange CLI.
A pipe is a data-processing step with declared inputs and outputs.
What goes in, what comes out
Commands
cd examples/email
openflange resolve
printf '"Alice@Example.COM"\n' | openflange run ./normalize-and-mask-email --lockedexamples/email/openflange.lock.yaml
# Generated by openflange resolve. Commit this file.
spec: openflange.org/lock/v0.1
dependencies:
"./normalize-and-mask-email":
resolved: "normalize-and-mask-email"
version: "0.1.0"
revision: null
integrity: "sha256-2e58fb598fc6bd77ab2390a10531b6a9f6d1c4fd22fba5aff0b39c513ab2736e"
dependencies:
- "./pipes/lowercase"
- "./pipes/mask-email"
"./normalize-and-mask-email-branching":
resolved: "normalize-and-mask-email-branching"
version: "0.1.0"
revision: null
integrity: "sha256-23f1d73ece7bc89b104ad692b9f7872a0b48db3e7471d5f63a19edcafa61faf8"
dependencies:
- "./pipes/lowercase"
- "./pipes/mask-email"
"./pipes/lowercase":
resolved: "pipes/lowercase"
version: "0.1.0"
revision: null
integrity: "sha256-0bfc947745c2f32bd590816dfe2b820e4c05406f0ce67c9e5a78be087ac89b59"
"./pipes/mask-email":
resolved: "pipes/mask-email"
version: "0.1.0"
revision: null
integrity: "sha256-cf822ac223cd3d93e85570c03d9c4e18ce69e6658d3e74bc136e560ffc8a751e"Outputs
# openflange resolve
ok: 4 references locked in openflange.lock.yaml (0 added, 0 changed)
# run --locked (stdout)
"a***e@example.com"What to notice
- The lockfile shown is the one committed in the repository, so
resolveadds and changes nothing. - Commit
openflange.lock.yaml.openflange updateis the only command that moves a pinned version. - If a referenced pipe changes on disk or upstream,
run --lockedstops withE_LOCK(exit status 2) before anything runs, and names the reference and both hashes. - A remote HTTP pipe can change behind a stable version number. The lockfile records the revision the server reports, when it reports one.
- This example has no README of its own in the repository: the output is from a run of the source build.