Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError when generating build info with dependencies #170

Open
dnoveczky-ntr opened this issue Jan 17, 2025 · 0 comments · May be fixed by #171
Open

AssertionError when generating build info with dependencies #170

dnoveczky-ntr opened this issue Jan 17, 2025 · 0 comments · May be fixed by #171
Assignees

Comments

@dnoveczky-ntr
Copy link

Hi,

This is a follow-up issue for #166
While the original error is resolved now (Thanks!), unfortunately there is a new one:

conan art:build-info create conan_build_info.json "test_proj" 1.2.3 conancenter --server artifactory --add-cached-deps --with-dependencies
ERROR: Traceback (most recent call last):
  File "conan\cli\cli.py", line 294, in main
  File "conan\cli\cli.py", line 193, in run
  File "conan\cli\command.py", line 187, in run
  File "conan\cli\command.py", line 205, in run
  File "C:\Users\dnoveczky\.conan2\extensions\commands\art\cmd_build_info.py", line 410, in build_info_create
    cli_out_write(bi.create())
  File "C:\Users\dnoveczky\.conan2\extensions\commands\art\cmd_build_info.py", line 321, in create
    bi.update({"modules": self.get_modules()})
  File "C:\Users\dnoveczky\.conan2\extensions\commands\art\cmd_build_info.py", line 291, in get_modules
    deps_artifacts = self.get_artifacts(nodes.get(require_id), "package",
  File "C:\Users\dnoveczky\.conan2\extensions\commands\art\cmd_build_info.py", line 144, in get_artifacts
    remote_path = _get_remote_path(node.get('ref'), node.get("package_id"), node.get("prev"))
  File "C:\Users\dnoveczky\.conan2\extensions\commands\art\cmd_build_info.py", line 40, in _get_remote_path
    assert prev
AssertionError

ERROR:

It can be reproduced with the same example I wrote for #166: https://github.com/dnoveczky-ntr/conan-build-info-bug-repro
And the same json too: conan_build_info.json

It looks like the issue is coming from this part, the "prev": null:

"6": {
                "ref": "meson/1.3.2#26ce8a76a36cc275cdfee1d757bc6561",
                "id": "6",
                "recipe": "Newer",
                "package_id": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
                "prev": null,
...

Could you please have a look?
Thanks you!

@dnoveczky-ntr dnoveczky-ntr changed the title AssertinError when generating build info with dependencies AssertionError when generating build info with dependencies Jan 17, 2025
@danimtb danimtb self-assigned this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants