You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already handle Cargo.toml files with "git+https://github.com/ctsa/rust-libbigwig.git?branch=feature" by adding branch = "feature" to the relevant entry of the lock file.
We need the same for tags: "git+https://github.com/ctsa/rust-libbigwig.git?tag=v0.4.0"
Maybe we shouldn't strip tags from existing lock files when automatically creating the crates easyconfig parameter, e.g. from:
[[package]]
name = "rust-libbigwig"
version = "0.4.0"
source = "git+https://github.com/ctsa/rust-libbigwig.git?tag=v0.4.0#1ce3d66a07a9b4d195984775c10bc82333afeab1"
cargo vendor seems to use the tag only:
[source."git+https://github.com/ctsa/rust-libbigwig.git?tag=v0.4.0"]
git = "https://github.com/ctsa/rust-libbigwig.git"
tag = "v0.4.0"
replace-with = "vendored-sources"
EasyBuild crashed! Please consider reporting a bug, this should not happen...
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 862, in <module>
main_with_hooks()
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 847, in main_with_hooks
exit_code: EasyBuildExit = main(args=args, prepared_cfg_data=(init_session_state, eb_go, cfg_settings))
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 798, in main
is_successful = process_eb_args(orig_paths, eb_go, cfg_settings, modtool, testing, init_session_state,
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 614, in process_eb_args
ecs_with_res = build_and_install_software(
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 226, in build_and_install_software
raise error
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/main.py", line 180, in build_and_install_software
(ec_res['success'], app_log, err_msg, err_code) = build_and_install_one(ec, init_env)
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/framework/easyblock.py", line 5120, in build_and_install_one
result = app.run_all_steps(run_test_cases=run_test_cases)
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/framework/easyblock.py", line 4932, in run_all_steps
self.run_step(step_name, step_methods)
File "/apps/Common/software/EasyBuild/5.2.1/lib/python3.9/site-packages/easybuild/framework/easyblock.py", line 4773, in run_step
current_method()
File "/dev/shm/included-easyblocks-xvrnwnd_/easybuild/easyblocks/generic/cargo.py", line 353, in extract_step
self._setup_offline_config(git_sources)
File "/dev/shm/included-easyblocks-xvrnwnd_/easybuild/easyblocks/generic/cargo.py", line 439, in _setup_offline_config
git_refs = self._get_crate_git_repo_refs(crate_name)
File "/dev/shm/included-easyblocks-xvrnwnd_/easybuild/easyblocks/generic/cargo.py", line 467, in _get_crate_git_repo_refs
git_branch_spec = re.compile(r'(?<ref>branch|tag)\s*=\s*"(?<value>[^"]*)"', re.M)
File "/usr/lib64/python3.9/re.py", line 252, in compile
return _compile(pattern, flags)
File "/usr/lib64/python3.9/re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib64/python3.9/sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib64/python3.9/sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib64/python3.9/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib64/python3.9/sre_parse.py", line 749, in _parse
raise source.error("unknown extension ?<" + char,
re.error: unknown extension ?<r at position 1
Flamefire
changed the title
Also handle references to git tags in Cargo crates
Also handle references to git tags in Cargo crates and download git repos recursively
Feb 27, 2026
Build succeeded for 3 out of 3 (total: 5 mins 29 secs) (3 easyconfigs in total)
vera-icelake-build - Linux Rocky Linux 9.6, x86_64, Intel(R) Xeon(R) Silver 4316 CPU @ 2.30GHz, Python 3.9.21
See https://gist.github.com/Micket/f45cf953994b6072a7046fb052c6fb98 for a full test report.
Build succeeded for 3 out of 3 (total: 10 mins 51 secs) (3 easyconfigs in total)
vera-icelake-build - Linux Rocky Linux 9.6, x86_64, Intel(R) Xeon(R) Silver 4316 CPU @ 2.30GHz, Python 3.9.21
See https://gist.github.com/Micket/a41b71957e8eed20516a6c5e3611c97f for a full test report.
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
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.
(created using
eb --new-pr)We already handle Cargo.toml files with
"git+https://github.com/ctsa/rust-libbigwig.git?branch=feature"by addingbranch = "feature"to the relevant entry of the lock file.We need the same for tags:
"git+https://github.com/ctsa/rust-libbigwig.git?tag=v0.4.0"Maybe we shouldn't strip tags from existing lock files when automatically creating the
crateseasyconfig parameter, e.g. from:cargo vendorseems to use the tag only: