Configure the default module repository, branch, and path from environment variables. #3481
+29
−3
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.
Add the ability to configure the default modules repo, branch, and name as environment variables.
Context:
Within our org, we're looking to build an nf-core-style module repository in Gitlab - this is possible with the command line flags, but it's a hassle to set
--git-branch
every time we run a module command.This PR adds the ability to set
NF_CORE_MODULES_NAME
,NF_CORE_MODULES_REMOTE
, andNF_CORE_MODULES_DEFAULT_BRANCH
as environment variables, defaulting to the existing constants for those values if the variables are not set.I took a quick look for other similar constants, but didn't see any, nor did I find an existing config file or object - if I missed something, let me know and I'll be happy to update this.
PR checklist
CHANGELOG.md
is updateddocs
is updated