Support for mambajs's environment lockfile format
#4085
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.
Description
NOT FINISHED YET
Add support for mambajs environment lockfile format in addition to the currently supported conda/mamba environment lockfile format.
Both formats don't provide the exact same set of information so we try to at least provide and use what's mandatory and fill in the additional data depending on the format.
The code implementing the parsing of each format has been put in separate cpp files, but the public api is unchanged, so one could just call the public api with either kind of file and we dont need to change anything on the cli front.
See:
nblink-lock.json
Type of Change
Checklist
pre-commit run --alllocally in the source folder and confirmed that there are no linter errors.