mirror of
https://github.com/RubyMetric/chsrc
synced 2025-09-10 12:50:05 +08:00
修复 Python 和 JavaScript 组中 target 的 ls
问题
This commit is contained in:
parent
106cb97e08
commit
8130f11cd1
@ -1023,6 +1023,14 @@ source_has_empty_url (Source_t *source)
|
|||||||
Source_t
|
Source_t
|
||||||
chsrc_yield_source (Target_t *t, char *option)
|
chsrc_yield_source (Target_t *t, char *option)
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 防止某些意外时刻 _setsrc() 等函数会被直接调,但此时 _prelude() 还没有执行过
|
||||||
|
* 我们在这里卡一道,确保 _prelude() 被调用
|
||||||
|
*
|
||||||
|
* 目前可能出现这种情况的时候:组换源的时候,组成菜的 _setsrc() 被直接调用
|
||||||
|
*/
|
||||||
|
if (!t->inited) t->preludefn();
|
||||||
|
|
||||||
Source_t source;
|
Source_t source;
|
||||||
if (chsrc_in_target_group_mode() && ProgStatus.leader_selected_index==-1)
|
if (chsrc_in_target_group_mode() && ProgStatus.leader_selected_index==-1)
|
||||||
{
|
{
|
||||||
|
@ -21,9 +21,7 @@ pl_js_bun_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 用的是 npm Registry 的源,所以使用 pl_js_group 的源
|
chef_use_other_target_sources (this, &pl_js_group_target);
|
||||||
this->sources = pl_js_group_target.sources;
|
|
||||||
this->sources_n = pl_js_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,9 +21,7 @@ pl_js_yarn_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_js_group 的源
|
chef_use_other_target_sources (this, &pl_js_group_target);
|
||||||
this->sources = pl_js_group_target.sources;
|
|
||||||
this->sources_n = pl_js_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static double
|
static double
|
||||||
|
@ -21,9 +21,7 @@ pl_js_npm_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_js_group 的源
|
chef_use_other_target_sources (this, &pl_js_group_target);
|
||||||
this->sources = pl_js_group_target.sources;
|
|
||||||
this->sources_n = pl_js_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,9 +23,7 @@ pl_js_nvm_prelude (void)
|
|||||||
|
|
||||||
chef_set_note (this, "nvm 不支持 Fish shell", "nvm does not support Fish");
|
chef_set_note (this, "nvm 不支持 Fish shell", "nvm does not support Fish");
|
||||||
|
|
||||||
// 使用 pl_js_nodejs_binary 的源
|
chef_use_other_target_sources (this, &pl_js_nodejs_binary_target);
|
||||||
this->sources = pl_js_nodejs_binary_target.sources;
|
|
||||||
this->sources_n = pl_js_nodejs_binary_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,9 +21,7 @@ pl_js_pnpm_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_js_group 的源
|
chef_use_other_target_sources (this, &pl_js_group_target);
|
||||||
this->sources = pl_js_group_target.sources;
|
|
||||||
this->sources_n = pl_js_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,9 +21,7 @@ pl_python_poetry_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_python_group 的源
|
chef_use_other_target_sources (this, &pl_python_group_target);
|
||||||
this->sources = pl_python_group_target.sources;
|
|
||||||
this->sources_n = pl_python_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -23,9 +23,7 @@ pl_python_rye_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_python_group 的源
|
chef_use_other_target_sources (this, &pl_python_group_target);
|
||||||
this->sources = pl_python_group_target.sources;
|
|
||||||
this->sources_n = pl_python_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
@ -21,9 +21,7 @@ pl_python_pip_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_python_group 的源
|
chef_use_other_target_sources (this, &pl_python_group_target);
|
||||||
this->sources = pl_python_group_target.sources;
|
|
||||||
this->sources_n = pl_python_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,9 +21,7 @@ pl_python_uv_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
// 使用 pl_python_group 的源
|
chef_use_other_target_sources (this, &pl_python_group_target);
|
||||||
this->sources = pl_python_group_target.sources;
|
|
||||||
this->sources_n = pl_python_group_target.sources_n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user