diff --git a/node_modules/renovate/dist/config/presets/local/index.js b/node_modules/renovate/dist/config/presets/local/index.js
index 85c7277..b432928 100644
--- a/node_modules/renovate/dist/config/presets/local/index.js
+++ b/node_modules/renovate/dist/config/presets/local/index.js
@@ -1,5 +1,8 @@
import { GlobalConfig } from "../../global.js";
import { common_exports } from "./common.js";
+//
+import { logger } from "../../../logger/index.js";
+//
//#region lib/config/presets/local/index.ts
async function getResolver(platform) {
switch (platform) {
@@ -20,9 +23,32 @@ async function getPreset({ repo, presetName = "default", presetPath, tag }) {
const platform = GlobalConfig.get("platform");
// v8 ignore if -- platform always has a default value
if (!platform) throw new Error(`Missing platform config for local preset.`);
- const resolver = await getResolver(platform);
+ //
+ let resolver = await getResolver(platform);
+ if (platform === "local" && process.env["RG_DO_NOT_FETCH_NON_LOCAL_PRESETS"] !== "true") {
+ const logMessage = function(renovateGraphLocalPlatform) {
+ return "renovate-graph has detected you are running in `--platform local` and is attempting to resolve the presets available. As you have specified `RG_LOCAL_PLATFORM=" + renovateGraphLocalPlatform + "`, renovate-graph is attempting to source any presets from " + renovateGraphLocalPlatform + " with the relevant authentication. This can be disabled by RG_DO_NOT_FETCH_NON_LOCAL_PRESETS if it causes issues, or is unwanted behaviour"
+ }
+
+ switch (process.env["RG_LOCAL_PLATFORM"]) {
+ case "github":
+ logger.info({ platform, presetsPlatform: process.env["RG_LOCAL_PLATFORM"] }, logMessage(process.env["RG_LOCAL_PLATFORM"]))
+ resolver = await getResolver("github")
+ break;
+ default:
+ logger.warn({ platform, presetsPlatform: process.env["RG_LOCAL_PLATFORM"] }, "renovate-graph has detected you are running in `--platform local`, with `RG_LOCAL_PLATFORM=" + process.env["RG_LOCAL_PLATFORM"] + "`, but renovate-graph does not currently support this platform. Please raise an issue upstream to add support.")
+ break;
+ }
+ }
+ //
if (!resolver) throw new Error(`The platform you're using (${platform}) does not support local presets.`);
- const endpoint = GlobalConfig.get("endpoint");
+ //
+ let endpoint = GlobalConfig.get("endpoint");
+ if (platform === "local" && process.env["RG_DO_NOT_FETCH_NON_LOCAL_PRESETS"] !== "true") {
+ endpoint = ''
+ logger.warn('renovate-graph has detected you are running in `--platform local` and is attempting to resolve the presets available. However, due to how the `--platform local` works, this means that the RENOVATE_ENDPOINT / `--endpoint ...` configuration may not work. This may cause issues when using a non-standard/self-hosted platform for your presets. If you encounter this, raise an issue upstream to add support and disable this functionality in the meantime with RG_DO_NOT_FETCH_NON_LOCAL_PRESETS')
+ }
+ //
return resolver.getPresetFromEndpoint(repo, presetName, presetPath, endpoint, tag);
}
//#endregion
diff --git a/node_modules/renovate/dist/renovate-graph/patched.cjs b/node_modules/renovate/dist/renovate-graph/patched.cjs
new file mode 100644
index 0000000..bc6f95c
--- /dev/null
+++ b/node_modules/renovate/dist/renovate-graph/patched.cjs
@@ -0,0 +1,9 @@
+"use strict";
+// isPatched indicates that we've correctly wired in our patches to Renovate (via `patch-package`) and allows us to throw an error if this isn't found
+function isPatched() {
+ return true
+}
+
+module.exports = {
+ isPatched,
+}
diff --git a/node_modules/renovate/dist/workers/repository/init/index.js b/node_modules/renovate/dist/workers/repository/init/index.js
index 5b62f89..4885a6e 100644
--- a/node_modules/renovate/dist/workers/repository/init/index.js
+++ b/node_modules/renovate/dist/workers/repository/init/index.js
@@ -45,7 +45,9 @@ async function initRepo(config_) {
config = await getRepoConfig(config);
setRepositoryLogLevelRemaps(config.logLevelRemap);
if (config.mode === "silent") logger.info("Repository is running with mode=silent and will not make Issues or PRs by default");
- checkIfConfigured(config);
+ //
+ // do not call `checkIfConfigured`
+ //
warnOnUnsupportedOptions(config);
config = applySecretsAndVariablesToConfig({ config });
setUserRepoConfig(config);