Skip to content

take --terse into account for --dry-run-short/-D and --dry-run#4989

Merged
boegel merged 2 commits intoeasybuilders:developfrom
Flamefire:terse-dry-run-short
Sep 8, 2025
Merged

take --terse into account for --dry-run-short/-D and --dry-run#4989
boegel merged 2 commits intoeasybuilders:developfrom
Flamefire:terse-dry-run-short

Conversation

@Flamefire
Copy link
Contributor

Allows to print easyconfigs together with their build status in a machine readable format

Similar to #4407 that introduced this for --missing

Example:

$eb GCC-14.2.0.eb -Dr --terse 
x /git/easybuild-easyconfigs/easybuild/easyconfigs/m/M4/M4-1.4.19.eb
x /git/easybuild-easyconfigs/easybuild/easyconfigs/b/Bison/Bison-3.8.2.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/f/flex/flex-2.6.4.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/z/zlib/zlib-1.3.1.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/b/binutils/binutils-2.42.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/g/GCCcore/GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/z/zlib/zlib-1.3.1-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/h/help2man/help2man-1.49.3-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/m/M4/M4-1.4.19-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/b/Bison/Bison-3.8.2-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/f/flex/flex-2.6.4-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/b/binutils/binutils-2.42-GCCcore-14.2.0.eb
- /git/easybuild-easyconfigs/easybuild/easyconfigs/g/GCC/GCC-14.2.0.eb

Allows to print easyconfigs together with their build status in a
machine readable format
# --missing-modules and dry_run_short are processed by process_eb_args,
# so we can't exit just yet here if it's used in combination with --terse
options.terse and not options.missing_modules,
options.terse and not (options.missing_modules or options.dry_run_short),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also cover --dry-run along with --dry-run-short/-D:

Suggested change
options.terse and not (options.missing_modules or options.dry_run_short),
options.terse and not (options.missing_modules or options.dry or options.dry_run_short),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@boegel boegel added this to the next release (5.1.2) milestone Sep 3, 2025
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 6b85140 into easybuilders:develop Sep 8, 2025
37 checks passed
@Flamefire Flamefire deleted the terse-dry-run-short branch September 8, 2025 10:11
@boegel boegel changed the title Support --terse for --dry-run-short take --terse into account for --dry-run-short/-D and --dry-run Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants