SBT fails on autoReplace #27935
-
What would you like help with?I think I found a bug How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub Please tell us more about your question or problemUpdates for SBT stopped working after in one of the renovate releases. I am running renovate using docker image. Seem to still work fine with docker image 37.215.0-slim, does not work from 37.221.1-slim onwards (also tested on 37.245.0-slim). Minimal reproduction repoCreated a minimal reproduction repo here: https://github.com/walczakp/renovate-sbt-issue Logs (if relevant)Logsrenovate version: 37.245.0-slim
renovate version: 37.215.0-slim
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
I did run into the same problem and tried to narrow it down. During the run it seems like the main problem is that during the confirmation of the update it fails to extract the package at because renovate/lib/modules/manager/index.ts Lines 73 to 76 in e0b2772 Digging a bit deeper it seems that the sbt-manager only exports Manually adding diff --git a/lib/modules/manager/sbt/index.ts b/lib/modules/manager/sbt/index.ts
index 671f3e729..d143d5ebf 100644
--- a/lib/modules/manager/sbt/index.ts
+++ b/lib/modules/manager/sbt/index.ts
@@ -5,7 +5,7 @@ import { SbtPackageDatasource } from '../../datasource/sbt-package';
import { SbtPluginDatasource } from '../../datasource/sbt-plugin';
import * as ivyVersioning from '../../versioning/ivy';
-export { extractAllPackageFiles } from './extract';
+export { extractAllPackageFiles, extractPackageFile } from './extract';
export { bumpPackageVersion } from './update';
export const supportedDatasources = [ The problem seems that the renovate/lib/workers/repository/update/branch/auto-replace.ts Lines 13 to 25 in b69416c |
Beta Was this translation helpful? Give feedback.
-
Confirmed, can't reproduce with 37.252.0. Thank you all for helping with that! |
Beta Was this translation helpful? Give feedback.
Created:
extractPackageFile
orupdateDependency
.