mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-14 00:20:47 +08:00
Fix group target
This commit is contained in:
parent
915dbe1477
commit
efd2ea2712
@ -50,7 +50,7 @@ void
|
|||||||
pl_js_bun_setsrc (char *option)
|
pl_js_bun_setsrc (char *option)
|
||||||
{
|
{
|
||||||
// 用的是 npm Registry 的源
|
// 用的是 npm Registry 的源
|
||||||
Source_t source = chsrc_yield_source_and_confirm (pl_js_group_target, option);
|
Source_t source = chsrc_yield_source_and_confirm (&pl_js_group_target, option);
|
||||||
|
|
||||||
char *content = RAWSTR_pl_js_bun_config;
|
char *content = RAWSTR_pl_js_bun_config;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ pl_js_yarn_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_js_yarn_setsrc (char *option)
|
pl_js_yarn_setsrc (char *option)
|
||||||
{
|
{
|
||||||
Source_t source = chsrc_yield_source (pl_js_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_js_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ pl_js_npm_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_js_npm_setsrc (char *option)
|
pl_js_npm_setsrc (char *option)
|
||||||
{
|
{
|
||||||
Source_t source = chsrc_yield_source (pl_js_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_js_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ pl_js_nvm_prelude (void)
|
|||||||
chef_allow_english(this);
|
chef_allow_english(this);
|
||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
chef_set_note ("nvm does not support Fish", "nvm 不支持 Fish shell");
|
chef_set_note (this, "nvm 不支持 Fish shell", "nvm does not support Fish");
|
||||||
|
|
||||||
// 使用 pl_js_nodejs_binary 的源
|
// 使用 pl_js_nodejs_binary 的源
|
||||||
this->sources = pl_js_nodejs_binary_target.sources;
|
this->sources = pl_js_nodejs_binary_target.sources;
|
||||||
@ -48,7 +48,7 @@ pl_js_nvm_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_js_nvm_setsrc (char *option)
|
pl_js_nvm_setsrc (char *option)
|
||||||
{
|
{
|
||||||
chsrc_yield_source_and_confirm (pl_js_binary_release);
|
Source_t source = chsrc_yield_source_and_confirm (&pl_js_binary_release);
|
||||||
|
|
||||||
char *w = xy_strjoin (3, "export NVM_NODEJS_ORG_MIRROR=", source.url, "\n");
|
char *w = xy_strjoin (3, "export NVM_NODEJS_ORG_MIRROR=", source.url, "\n");
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ pl_js_pnpm_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_js_pnpm_setsrc (char *option)
|
pl_js_pnpm_setsrc (char *option)
|
||||||
{
|
{
|
||||||
Source_t source = chsrc_yield_source (pl_js_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_js_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ pl_python_pdm_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_python_pdm_setsrc (char *option)
|
pl_python_pdm_setsrc (char *option)
|
||||||
{
|
{
|
||||||
Source_t source = chsrc_yield_source (pl_python_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_python_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ pl_python_poetry_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_python_poetry_setsrc (char *option)
|
pl_python_poetry_setsrc (char *option)
|
||||||
{
|
{
|
||||||
Source_t source = chsrc_yield_source (pl_python_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_python_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ void
|
|||||||
pl_python_rye_setsrc (char *option)
|
pl_python_rye_setsrc (char *option)
|
||||||
{
|
{
|
||||||
/* 并不在 Python group 中,所以不考虑 target group 情况,仅使用 Python group 提供的源 */
|
/* 并不在 Python group 中,所以不考虑 target group 情况,仅使用 Python group 提供的源 */
|
||||||
Source_t source = chsrc_yield_source_and_confirm (pl_python_group_target, option);
|
Source_t source = chsrc_yield_source_and_confirm (&pl_python_group_target, option);
|
||||||
|
|
||||||
const char *content = RAWSTR_pl_python_rye_config;
|
const char *content = RAWSTR_pl_python_rye_config;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ pl_python_pip_setsrc (char *option)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Source_t source = chsrc_yield_source (pl_python_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_python_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ pl_python_uv_setsrc (char *option)
|
|||||||
{
|
{
|
||||||
chsrc_ensure_program ("uv");
|
chsrc_ensure_program ("uv");
|
||||||
|
|
||||||
Source_t source = chsrc_yield_source (pl_python_group_target, option);
|
Source_t source = chsrc_yield_source (&pl_python_group_target, option);
|
||||||
if (chsrc_in_standalone_mode())
|
if (chsrc_in_standalone_mode())
|
||||||
chsrc_confirm_source(&source);
|
chsrc_confirm_source(&source);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user