diff --git a/src/recipe/lang/JavaScript/Bun.c b/src/recipe/lang/JavaScript/Bun.c index 2be90e7..539a7d1 100644 --- a/src/recipe/lang/JavaScript/Bun.c +++ b/src/recipe/lang/JavaScript/Bun.c @@ -50,7 +50,7 @@ void pl_js_bun_setsrc (char *option) { // 用的是 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; diff --git a/src/recipe/lang/JavaScript/Yarn.c b/src/recipe/lang/JavaScript/Yarn.c index 0c8dab6..757973d 100644 --- a/src/recipe/lang/JavaScript/Yarn.c +++ b/src/recipe/lang/JavaScript/Yarn.c @@ -58,7 +58,7 @@ pl_js_yarn_getsrc (char *option) void 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/JavaScript/npm.c b/src/recipe/lang/JavaScript/npm.c index dc4d58d..13f0c4a 100644 --- a/src/recipe/lang/JavaScript/npm.c +++ b/src/recipe/lang/JavaScript/npm.c @@ -43,7 +43,7 @@ pl_js_npm_getsrc (char *option) void 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/JavaScript/nvm.c b/src/recipe/lang/JavaScript/nvm.c index f4a7191..134337b 100644 --- a/src/recipe/lang/JavaScript/nvm.c +++ b/src/recipe/lang/JavaScript/nvm.c @@ -23,7 +23,7 @@ pl_js_nvm_prelude (void) chef_allow_english(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 的源 this->sources = pl_js_nodejs_binary_target.sources; @@ -48,7 +48,7 @@ pl_js_nvm_getsrc (char *option) void 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"); diff --git a/src/recipe/lang/JavaScript/pnpm.c b/src/recipe/lang/JavaScript/pnpm.c index 0da46e0..922a1ef 100644 --- a/src/recipe/lang/JavaScript/pnpm.c +++ b/src/recipe/lang/JavaScript/pnpm.c @@ -43,7 +43,7 @@ pl_js_pnpm_getsrc (char *option) void 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/Python/PDM.c b/src/recipe/lang/Python/PDM.c index f18341a..b42fc0b 100644 --- a/src/recipe/lang/Python/PDM.c +++ b/src/recipe/lang/Python/PDM.c @@ -45,7 +45,7 @@ pl_python_pdm_getsrc (char *option) void 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/Python/Poetry.c b/src/recipe/lang/Python/Poetry.c index 5a76257..566cd8b 100644 --- a/src/recipe/lang/Python/Poetry.c +++ b/src/recipe/lang/Python/Poetry.c @@ -41,7 +41,7 @@ pl_python_poetry_getsrc (char *option) void 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/Python/Rye.c b/src/recipe/lang/Python/Rye.c index b10e50c..6ae4098 100644 --- a/src/recipe/lang/Python/Rye.c +++ b/src/recipe/lang/Python/Rye.c @@ -57,7 +57,7 @@ void pl_python_rye_setsrc (char *option) { /* 并不在 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; diff --git a/src/recipe/lang/Python/pip.c b/src/recipe/lang/Python/pip.c index c504b69..b428901 100644 --- a/src/recipe/lang/Python/pip.c +++ b/src/recipe/lang/Python/pip.c @@ -55,7 +55,7 @@ pl_python_pip_setsrc (char *option) 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()) chsrc_confirm_source(&source); diff --git a/src/recipe/lang/Python/uv.c b/src/recipe/lang/Python/uv.c index 7589ff6..d80ac86 100644 --- a/src/recipe/lang/Python/uv.c +++ b/src/recipe/lang/Python/uv.c @@ -111,7 +111,7 @@ pl_python_uv_setsrc (char *option) { 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()) chsrc_confirm_source(&source);