Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions extensions/commands/art/cmd_build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def _get_local_artifacts():
artifacts_folder = node.get("package_folder") if artifact_type == "package" else node.get("recipe_folder")
if artifacts_folder is None and artifact_type == "package" and node.get("binary") == "Skip":
ConanOutput().warning(f"Package is marked as 'Skip' for {node.get('ref')} and will not be included "
"into the Build Info. If you want to get it included, use "
"conf -c a:tools.graph:skip_binaries=False in your conan create/install command.")
"into the Build Info. If you want to get it included, use the conf argument: "
"'-c:a tools.graph:skip_binaries=False' in your conan create/install command.")
return (local_artifacts, missing_artifacts)

artifacts_folder = Path(node.get("package_folder")) if artifact_type == "package" else Path(node.get("recipe_folder"))
Expand Down Expand Up @@ -187,9 +187,11 @@ def _get_local_artifacts():

def _get_remote_artifacts(artifact):
artifact_info = None
assert self._url, "Missing information in the Conan local cache, " \
"please provide '--url' or '--server' arguments " \
"to retrieve the information from Artifactory."
if not self._url:
raise ConanException(
"Missing Artifactory URL. The Conan local cache does not contain all the required information. "
"Please provide '--url' or '--server' arguments to retrieve the information from Artifactory."
)

remote_path = _get_remote_path(node.get('ref')) if artifact_type == "recipe" else _get_remote_path(
node.get('ref'), node.get("package_id"), node.get("prev"))
Expand Down
Loading