Repository navigation
[modules] is optional - #310
Merged
Merged
Conversation
A site file with no module tool to drive, such as one machine with EasyBuild from pip, wrote [modules] init = [] to say nothing. Absent, the table and the key now mean the same: no module loaded, no wrapper. The schema contract test lists modules with the optional tables.
The owner made [modules] optional; dropping [scheduler] is still refused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A site file with no module tool to drive, such as one workstation with EasyBuild from pip, had to write
[modules] init = []to say nothing. The table and itsinitkey are optional: absent, no module is loaded and no module wrapper starts, the same asinit = [].schema.rs:Moduleshas aDefault;Site.modulesandModules.inittake#[serde(default)]and are documented as optional, so the site-file reference row changes with them.moduleswith the optional tables.missing_required_sections_are_rejectedkeeps[scheduler];a_site_without_modules_loads_nothingchecks the new case parses, loads nothing and validates.[modules]table.Checked on one x86_64 host:
cargo fmt --check,cargo clippy --all-targets -- -D warnings, andcargo test. In a login shell, one watch test (without_eb_stack_watch_says_what_to_rebuild_and_refuses_to_guess_the_rest) failed once because that shell's PATH carries an eb-stack 0.3.0, which writes rebuild-set schema 4; the test appends the caller's PATH after its stubs. Without that eb-stack on PATH the watch suite passed 5 of 5 runs.