aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
3 hourscmd/dist: allow forcing dynamic linkingstagingOphestra
This remains unsupported, but is useful during testing, or when packaging for some particularly stubborn distros. Signed-off-by: Ophestra <cat@gensokyo.uk>
18 hoursall: use Linux kernel coding styleOphestra
The Gitea web interface is no longer publicly accessible, so it no longer matters that this code style does not render well on Gitea. Signed-off-by: Ophestra <cat@gensokyo.uk>
48 hourscmd/hakurei/testsuite: extra exercise parametersOphestra
This also removes the interval and fixes the mustStart search criteria. Signed-off-by: Ophestra <cat@gensokyo.uk>
21 hourscmd/hakurei/testsuite: exercise setup/teardownOphestra
This exposes a race during simultaneous startup between chmod and acl_set_file, where the ACL mask is clobbered by chmod. This remained undiscovered until now due to the previous integration test suite's complete inability to handle concurrency (the nixos vm test machinery could not even support python multithreading). Signed-off-by: Ophestra <cat@gensokyo.uk>
8 daysinternal/testsuite: add additional environmentOphestra
This improves compatibility. This change also improves error messages. Signed-off-by: Ophestra <cat@gensokyo.uk>
8 daysinternal/testsuite: move from testOphestra
This structure is a lot less clumsy than the old nix-centric layout. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/dist: optionally build with race instrumentOphestra
This is mostly useful for the integration test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/mbf/internal/ci: zero archive timesOphestra
This keeps archives deterministic across multiple jobs. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/mbf/internal/ci: document dist endpointOphestra
There will eventually be more endpoints for other CI workloads. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/mbf: poison open via environmentOphestra
This enables use of non-cache cmd/mbf utils as root. Signed-off-by: Ophestra <cat@gensokyo.uk>
14 dayscmd/mbf/internal/ci: reset buffer before retryingOphestra
This obtains a fresh file descriptor on each attempt. Without resetting it would end up endlessly appending to the buffer. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-30cmd/mbf: proof-of-concept CI serviceOphestra
This accepts CI work over a shared read-only cache directory. This replaces the nix CI service and prepares the removal of nix from the test infrastructure. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-17cmd/app: don't use tabs for alignmentRachael R.
2026-09-17cmd/app: alternative merged template layoutOphestra
This implements an optional, alternative template layout to accommodate ZFS and equivalent setups where each template occupies a different filesystem. In such a setup, the default, separate workdir is unusable as overlayfs requires the workdir to reside on the same filesystem as the writable upperdir. The "merge" build tag enables this alternative behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-15cmd/mbf: rename pkgsiteOphestra
This name is less ambiguous than pkgserver. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-13cmd/app: document setup and usageOphestra
This adds instructions and documentation for cmd/app itself and some example configuration for the typical desktop use case. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-12cmd/app: find next unused identityOphestra
This is a lot easier than grepping around. Verbose output is equivalent to assertion in the deprecated nix code. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-12cmd/app: show user/group id of the specified appidOphestra
This is useful for setting up new templates and apps. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-05internal/rosa: separate native tools from librariesOphestra
This removes most redundant runtime arguments and is useful for cross-compilation. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-30release: 0.4.8v0.4.8Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-30internal/store: destroy stale instancesOphestra
This recovers from inconsistent state on power loss and /tmp/ is not wiped on startup, or if hakurei somehow crashes. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-29pkg: move from internalOphestra
Closes #43. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-25container: enter init path earlyOphestra
There is generally no use case where any setup is required before init, and requiring the explicit function call is error-prone and unnecessary. It also causes trouble with packages using a similar trick. This change moves argv0 check early and makes it an import side effect. The stub will be removed in v0.5. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-25internal/rosa: read-only access to built-insOphestra
This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-21release: 0.4.7v0.4.7Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-20go: 1.27Ophestra
This fixes test cases affected by jsonv2 changes. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-12cmd/hakurei: terminate specified instanceOphestra
This is theoretically susceptible to the PID race, but such an event is statistically impossible, and not exploitable in the intended use case, regardless. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-12internal/pkg: in-flight error resolutionOphestra
The DCE is a slow and overcomplicated solution to a simple problem. This change replaces the DCE by resolving errors in-flight. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-09release: 0.4.6v0.4.6Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-09cmd/dist: replace readme with licenseOphestra
The readme document is pretty useless for anything other than the website, so replace it with something more relevant. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-08cmd/mbf: improve title formatOphestra
This is cleaner for long-running daemon processes, and the additional information is more intuitive. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-07command: hard wrap help message flagsOphestra
This greatly improves readability when lots of flags are registered. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-31cmd/mbf: set window titleOphestra
This displays ongoing and complete cures via the notify channel. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-31cmd/mbf: all commandOphestra
This is a convenience command to cure all registered packages to avoid relying on the test. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-30cmd/mbf: print checksum to stdoutOphestra
Same as the cure command, enables usage in scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-30cmd/mbf: print outcome pathname to stdoutOphestra
This enables use of the cure command in scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-30cmd/mbf: enable output colouringOphestra
This respects the de facto standards, on top of checking stderr. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-30internal/rosa: remove legacy exec helperOphestra
This change also adds a fourth stage to the bootstrap machinery, offering more correct toolchain validation that works around LLVM dynamic linking flaws. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-25cmd/mbf: move gentoo bootstrap pathOphestra
This is a lot more flexible for troubleshooting when used with the cure command. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-24cmd/dist: default to /usr/local prefixOphestra
This conventionally makes more sense for software not installed by the package manager. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-23internal/pkg: optional executable filesOphestra
This enables a FileArtifact implementation to specify whether its resulting file should be executable. This change also implements shebang and ELF magic checks in the file artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-23internal/pkg: implementation revisionsOphestra
This enables changing the behaviour of an artifact implementation without changing its IR structure. Unfortunately this changes the IR header structure resulting in many rebuilds. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-09cmd/mbf: expose target load averageOphestra
There are often good reason to override this. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-09internal/pkg: consolidate cache attributesOphestra
This makes the interface stable. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-08cmd/mbf: validate build determinismOphestra
This rebuilds a package repeatedly and compares outcomes. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-08cmd/mbf: print all available handlesOphestra
Useful for scripting. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-08internal/pkg: optionally force implementation entryOphestra
For validation of build determinism. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-07internal/rosa: populate mirror snapshotOphestra
This produces the same structure served by the dynamic server. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-07internal/rosa: mirror response write methodsOphestra
For the fs.FS implementation and static publishing. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-07test: move nix filesOphestra
These are too much clutter. Move them to test directory until the test suite replacement is upstreamed. Signed-off-by: Ophestra <cat@gensokyo.uk>