@@ -101,7 +101,7 @@ def gallery_apps_and_components(
101
101
except Exception :
102
102
return None
103
103
104
- entry , kind = _resolve_entry (app_or_component , version_arg )
104
+ entry , kind = _resolve_entry (name , version_arg )
105
105
106
106
if kind == "app" :
107
107
# give the user the chance to do a manual install
@@ -111,16 +111,19 @@ def gallery_apps_and_components(
111
111
# run installation if requested
112
112
_install_app_from_source (source_url , git_url , folder_name , cwd = cwd , overwrite = overwrite , git_sha = git_sha )
113
113
114
- return os .path .join (os .getcwd (), folder_name , entry ["appEntrypointFile" ])
114
+ return os .path .join (os .getcwd (), * entry ["appEntrypointFile" ]. split ( "/" ) )
115
115
116
116
elif kind == "component" :
117
117
# give the user the chance to do a manual install
118
- git_url = _show_install_component_prompt (entry , app_or_component , org , yes_arg )
119
-
118
+ source_url , git_url , folder_name , git_sha = _show_install_app_prompt (
119
+ entry , app_or_component , org , yes_arg , resource_type = "component"
120
+ )
121
+ if "@" in git_url :
122
+ git_url = git_url .split ("git+" )[1 ].split ("@" )[0 ]
120
123
# run installation if requested
121
- _install_component_from_source ( git_url )
124
+ _install_app_from_source ( source_url , git_url , folder_name , cwd = cwd , overwrite = overwrite , git_sha = git_sha )
122
125
123
- return os .path .join (os .getcwd (), entry ["appEntrypointFile" ] )
126
+ return os .path .join (os .getcwd (), * entry ["entrypointFile" ]. split ( "/" ) )
124
127
125
128
return None
126
129
0 commit comments