# eb-local.config ::::{zig:module} eb-local.config :file: src/config.zig :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig eb-local's settings, layered lowest first: built-in defaults, the site file, a site profile, the user file, a user profile, EB_LOCAL_* variables, command-line options. Every value keeps where it came from. The storage settings come only from the site layer: a user cannot point builds at a shared file system. Secrets are named sources, never values. :::: ## Types ::::{zig:type} eb-local.config.Trash :signature: pub const Trash = enum :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L15 What `clean` and `uninstall` do with what they remove: `rtrash` moves it to the trash, and stops when rtrash is not on `PATH`; `none` removes nothing without `--delete`; `auto` is `rtrash` when rtrash is on `PATH`, else `none`. :::{zig:field} eb-local.config.Trash.auto :signature: auto :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L15 ::: :::{zig:field} eb-local.config.Trash.rtrash :signature: rtrash :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L15 ::: :::{zig:field} eb-local.config.Trash.none :signature: none :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L15 ::: :::: ::::{zig:type} eb-local.config.StorageMode :signature: pub const StorageMode = enum :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L19 Where managed builds put their workspace. `auto` uses a Slurm allocation when one is configured, and a workstation otherwise. :::{zig:field} eb-local.config.StorageMode.auto :signature: auto :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L19 ::: :::{zig:field} eb-local.config.StorageMode.local :signature: local :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L19 ::: :::: ::::{zig:type} eb-local.config.NodeType :signature: pub const NodeType = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L31 A node type: a name, and the sbatch options that place a job on it. :::{zig:field} eb-local.config.NodeType.name :signature: name: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L32 ::: :::{zig:field} eb-local.config.NodeType.sbatch :signature: sbatch: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L34 sbatch options, words separated by spaces. ::: :::{zig:field} eb-local.config.NodeType.from :signature: from: []const u8 = "" :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L36 The file and line that set this node type. ::: :::: ::::{zig:type} eb-local.config.Secret :signature: pub const Secret = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L63 A secret: the variable eb receives, and where its value is read from. The value itself is read only for a build, by `secrets.resolve`. :::{zig:field} eb-local.config.Secret.name :signature: name: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L65 The variable eb receives. ::: :::{zig:field} eb-local.config.Secret.source :signature: source: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L67 env:VAR, file:PATH or nimvault:ENTRY. ::: :::{zig:field} eb-local.config.Secret.from :signature: from: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L68 ::: :::: ::::{zig:type} eb-local.config.EessiVar :signature: pub const EessiVar = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L73 An EESSI setting exported before the stack loads, such as EESSI_IGNORE_LMOD_ERROR_ZEN4_GCC1220. Not a secret: config shows it. :::{zig:field} eb-local.config.EessiVar.name :signature: name: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L74 ::: :::{zig:field} eb-local.config.EessiVar.value :signature: value: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L75 ::: :::{zig:field} eb-local.config.EessiVar.from :signature: from: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L76 ::: :::: ::::{zig:type} eb-local.config.Settings :signature: pub const Settings = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L81 Every setting in force, each with where it came from. The defaults here are the built-in ones; `load` puts the files, variables and options on top. :::{zig:field} eb-local.config.Settings.profile :signature: profile: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L82 ::: :::{zig:field} eb-local.config.Settings.prefix :signature: prefix: Setting([]const u8) = .{ .value = "~/eessi" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L85 EESSI-extend's own default, so `eb-local eb` and EESSI-extend loaded by hand install into the same tree. ::: :::{zig:field} eb-local.config.Settings.project :signature: project: Setting(?[]const u8) = .{ .value = null } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L86 ::: :::{zig:field} eb-local.config.Settings.stack_module :signature: stack_module: Setting([]const u8) = .{ .value = "EESSI/2026.06" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L87 ::: :::{zig:field} eb-local.config.Settings.extend_module :signature: extend_module: Setting([]const u8) = .{ .value = "EESSI-extend/2026.06-easybuild" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L88 ::: :::{zig:field} eb-local.config.Settings.dev_buildenv :signature: dev_buildenv: Setting([]const u8) = .{ .value = "buildenv/default-foss-2026.1" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L89 ::: :::{zig:field} eb-local.config.Settings.buildenv_for :signature: buildenv_for: [families.len]Setting([]const u8) = .{ .{ .value = "buildenv/default-foss-2026.1-CUDA-13.3.0" }, .{ .value = "buildenv/default-lfoss-2026.1" }, .{ .value = "buildenv/default-intel-2026.1" }, .{ .value = "" }} :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L93 The build environment for each compiler family other than GCC, used when dev.buildenv is left at its default; "" means none exists and eb-local's RPATH wrappers stand in. ::: :::{zig:field} eb-local.config.Settings.dev_modules :signature: dev_modules: Setting([]const []const u8) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L99 ::: :::{zig:field} eb-local.config.Settings.allocation_hint :signature: allocation_hint: Setting([]const u8) = .{ .value = "" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L100 ::: :::{zig:field} eb-local.config.Settings.site_toolchains :signature: site_toolchains: Setting([]const []const u8) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L102 NAME/VERSION toolchains the EESSI hooks accept besides foss and lfoss. ::: :::{zig:field} eb-local.config.Settings.node_types :signature: node_types: Setting([]const NodeType) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L105 Node types `eb-local submit` sends a build to: a name and the sbatch options that place a job on that node type. Site file only. ::: :::{zig:field} eb-local.config.Settings.node_types_old_key :signature: node_types_old_key: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L108 Where the site file listed them as `[build.targets]`, their name before 3.2.0, which is read until 4.0.0. ::: :::{zig:field} eb-local.config.Settings.trash :signature: trash: Setting(Trash) = .{ .value = .auto } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L109 ::: :::{zig:field} eb-local.config.Settings.logs_older_than_days :signature: logs_older_than_days: Setting(u32) = .{ .value = 30 } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L110 ::: :::{zig:field} eb-local.config.Settings.storage_mode :signature: storage_mode: Setting(StorageMode) = .{ .value = .auto } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L111 ::: :::{zig:field} eb-local.config.Settings.node_local_root :signature: node_local_root: Setting([]const u8) = .{ .value = "" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L112 ::: :::{zig:field} eb-local.config.Settings.node_local_mount :signature: node_local_mount: Setting([]const u8) = .{ .value = storage.default_mount } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L114 Each allocation's mount below node_local_root: %u the user, %j the job id. ::: :::{zig:field} eb-local.config.Settings.node_local_fstype :signature: node_local_fstype: Setting([]const u8) = .{ .value = "xfs" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L115 ::: :::{zig:field} eb-local.config.Settings.shared_scratch :signature: shared_scratch: Setting([]const []const u8) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L116 ::: :::{zig:field} eb-local.config.Settings.nimvault_program :signature: nimvault_program: Setting([]const u8) = .{ .value = "" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L118 The nimvault program; empty means the first on PATH. ::: :::{zig:field} eb-local.config.Settings.nimvault_vault :signature: nimvault_vault: Setting([]const u8) = .{ .value = "" } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L121 The vault nimvault reads (its --vault); empty leaves nimvault to find one from NIMVAULT_VAULT_REPO or the current directory. ::: :::{zig:field} eb-local.config.Settings.secrets :signature: secrets: std.ArrayList(Secret) = .empty :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L122 ::: :::{zig:field} eb-local.config.Settings.build_secrets :signature: build_secrets: Setting(?[]const []const u8) = .{ .value = null } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L125 The secrets a build gets, by name. Null, when nothing sets build.secrets, is every secret. ::: :::{zig:field} eb-local.config.Settings.clear_foreign_prefixes :signature: clear_foreign_prefixes: Setting(bool) = .{ .value = false } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L128 Drop path entries and compiler wrappers that resolve outside the approved prefixes. Off unless a file or EB_LOCAL_BUILD_CLEAR_FOREIGN_PREFIXES sets it. ::: :::{zig:field} eb-local.config.Settings.approved_prefixes :signature: approved_prefixes: Setting([]const []const u8) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L131 Absolute prefixes, besides EESSI and the install prefix, that doctor and a clearing build treat as approved. Site file only. ::: :::{zig:field} eb-local.config.Settings.cvmfs_parallel :signature: cvmfs_parallel: Setting(u8) = .{ .value = 0 } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L134 How many tasks `doctor --cvmfs` uses for a metadata read. 0 runs none. `--cvmfs-parallel` overrides it. Off, and the flag, stay off unless set. ::: :::{zig:field} eb-local.config.Settings.mpi_transports :signature: mpi_transports: Setting([]const []const u8) = .{ .value = &.{} } :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L137 Transports `doctor --mpi` may hello inside an allocation: `ofi`, `ucx`. Site file only. Empty runs no hello. A build never reads this. ::: :::{zig:field} eb-local.config.Settings.eessi :signature: eessi: std.ArrayList(EessiVar) = .empty :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L138 ::: :::: ::::{zig:type} eb-local.config.Layer :signature: pub const Layer = enum :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L180 Whose file a source is. Only the site layer may set the storage settings, `build.site_toolchains` and `build.node_types`. :::{zig:field} eb-local.config.Layer.site :signature: site :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L180 ::: :::{zig:field} eb-local.config.Layer.user :signature: user :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L180 ::: :::: ::::{zig:type} eb-local.config.Source :signature: pub const Source = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L186 One configuration file, already read and trusted. :::{zig:field} eb-local.config.Source.path :signature: path: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L187 ::: :::{zig:field} eb-local.config.Source.text :signature: text: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L188 ::: :::{zig:field} eb-local.config.Source.layer :signature: layer: Layer :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L189 ::: :::: ::::{zig:type} eb-local.config.Overrides :signature: pub const Overrides = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L195 Values from the command line, which `load` puts above every other layer. The program sets `profile`, `project` and `buildenv` from `--profile`, `--project` and `--buildenv`; no option sets `prefix`. :::{zig:field} eb-local.config.Overrides.profile :signature: profile: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L196 ::: :::{zig:field} eb-local.config.Overrides.prefix :signature: prefix: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L197 ::: :::{zig:field} eb-local.config.Overrides.project :signature: project: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L198 ::: :::{zig:field} eb-local.config.Overrides.buildenv :signature: buildenv: ?[]const u8 = null :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L199 ::: :::: ::::{zig:type} eb-local.config.Diagnostic :signature: pub const Diagnostic = struct :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L204 Why the configuration was refused, filled in when `error.Invalid` is returned: one message naming the file and line, or the variable. :::{zig:field} eb-local.config.Diagnostic.message :signature: message: []const u8 = "" :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L205 ::: :::: ::::{zig:type} eb-local.config.SourceCheck :signature: pub const SourceCheck = union(enum) :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L269 What `checkSecretSource` found. :::{zig:field} eb-local.config.SourceCheck.ok :signature: ok :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L270 ::: :::{zig:field} eb-local.config.SourceCheck.unknown :signature: unknown :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L272 Not env:, file: or nimvault:, as when a value is written in its place. ::: :::{zig:field} eb-local.config.SourceCheck.refused :signature: refused: []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L274 One of those, and what is wrong with the rest of it. ::: :::: ## Error sets ::::{zig:errorset} eb-local.config.Error :signature: pub const Error = error{Invalid} || Allocator.Error :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L210 `error.Invalid` when a file, variable or option is refused, with the reason in the `Diagnostic`. :::: ## Functions :::{zig:function} eb-local.config.Setting :signature: pub fn Setting(comptime T: type) type :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L23 A value and where it came from, as `eb-local config` shows it: `default`, a file and line with its layer and profile, a variable or an option. ::: :::{zig:function} eb-local.config.validNodeTypeName :signature: pub fn validNodeTypeName(n: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L40 A node type's name: what --on names and a job name carries. ::: :::{zig:function} eb-local.config.validSbatchOptions :signature: pub fn validSbatchOptions(v: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L48 sbatch options eb-local passes as separate words, never through a shell: options only, and characters that need no quoting. ::: :::{zig:function} eb-local.config.ebRoot :signature: pub fn ebRoot(a: Allocator, software: []const u8) Allocator.Error![]const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L162 The `EBROOT` name EasyBuild writes for `software`. `convert_name` replaces `+` with `plus`, `-` with `min` and drops `.`, then the result is uppercased. `llvm-compilers` is `EBROOTLLVMMINCOMPILERS`. ::: :::{zig:function} eb-local.config.validModule :signature: pub fn validModule(name: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L214 Module names as Lmod writes them. Anything else could change the meaning of the lines env and dev print for eval. ::: :::{zig:function} eb-local.config.validSecretName :signature: pub fn validSecretName(name: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L235 A variable name a secret may set: a shell name that is not one the build depends on for its paths or loader. ::: :::{zig:function} eb-local.config.validEessiName :signature: pub fn validEessiName(name: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L255 A name [eessi] may set: EESSI_ and a shell name, not one eb-local owns or one build.site_toolchains sets. ::: :::{zig:function} eb-local.config.validEessiValue :signature: pub fn validEessiValue(v: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L264 A value [eessi] may give: at most 4096 bytes, with no line break or NUL. ::: :::{zig:function} eb-local.config.checkSecretSource :signature: pub fn checkSecretSource(source: []const u8) SourceCheck :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L280 Whether a secret may name `source`: `env:` and a variable name, `file:` and an absolute or `~/` path, or `nimvault:` and an entry that does not start with `-`. None may hold a line break or NUL. ::: :::{zig:function} eb-local.config.buildGets :signature: pub fn buildGets(s: Settings, name: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L303 Whether a build gets the secret `name`: build.secrets names it, or nothing sets build.secrets. ::: :::{zig:function} eb-local.config.buildSecrets :signature: pub fn buildSecrets(a: Allocator, s: Settings) Allocator.Error![]Secret :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L310 The secrets a build gets, in the order the configuration defines them. ::: :::{zig:function} eb-local.config.withheldSource :signature: pub fn withheldSource(s: Settings, sec: Secret) ?[]const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L321 The variable whose value would bring a secret the build does not get into its environment under another name: the one an `env:` source names. Null for a secret the build gets, another kind of source, or a variable a secret may not set, such as PATH, which the build needs. ::: :::{zig:function} eb-local.config.validToolchain :signature: pub fn validToolchain(tc: []const u8) bool :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L334 NAME/VERSION, each part letters, digits, '.', '_' or '-'. ::: :::{zig:function} eb-local.config.toolchainsJson :signature: pub fn toolchainsJson(a: Allocator, tcs: []const []const u8) Allocator.Error![]const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L345 The JSON list the EESSI hooks read, [{"name": N, "version": V}, ...]; the parts were checked by validToolchain, so nothing needs escaping. ::: :::{zig:function} eb-local.config.profileNames :signature: pub fn profileNames(a: Allocator, t: *const toml.Table) Allocator.Error![]const []const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L695 Profile names a file defines. ::: :::{zig:function} eb-local.config.load :signature: pub fn load( a: Allocator, sources: []const Source, env: *const std.process.Environ.Map, cli: Overrides, diag: *Diagnostic) Error!Settings :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L712 The configuration in `sources` (site first, then user), with `env` and `cli` on top. ::: :::{zig:function} eb-local.config.legacyToToml :signature: pub fn legacyToToml(a: Allocator, text: []const u8, diag: *Diagnostic) Error![]const u8 :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L901 The 1.x site file: `key = value` lines, parsed, never sourced. Kept so a site's existing eb-local.conf keeps working. Each setting becomes a dotted TOML key on the line it is on, so that `eb-local config` and the errors name that line. ::: ## Constants :::{zig:constant} eb-local.config.families :signature: pub const families = ... :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L152 The compiler families dev tells apart after the modules load, each by the EBROOT variable of its compiler module, in rising precedence. GCC is the rest and uses dev.buildenv. The names are EasyBuild's: a hyphen in the software name becomes "min", so llvm-compilers sets EBROOTLLVMMINCOMPILERS. `compiler` is the software name of the family's compiler module and `version` the variable that module sets to its version. Together they name the build environment a site installs at the compiler's own toolchain level, `buildenv/default--`, which dev tries when the family's configured build environment is not installed. CUDA is not a toolchain and has none. ::: :::{zig:constant} eb-local.config.no_buildenv :signature: pub const no_buildenv = "none" :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L176 The EB_LOCAL_DEV_BUILDENV_FOR_* word for "no build environment". ::: :::{zig:constant} eb-local.config.secret_env_prefix :signature: pub const secret_env_prefix = "EB_LOCAL_SECRET_" :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L183 EB_LOCAL_SECRET_NAME=SOURCE names where the secret NAME comes from. ::: :::{zig:constant} eb-local.config.eessi_owned :signature: pub const eessi_owned = ... :source: https://github.com/stackhands/eb-local/blob/629c1ef39cdece5bfa2145cc8e2e89ae7583d197/src/config.zig#L247 The EESSI variables eb-local sets or clears itself: where an install goes and which CPU or GPU target is used. [eessi] cannot set them. :::