Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovate does not update buildscript-gradle.lockfile #20289

Closed
chhch opened this issue Feb 8, 2023 · 5 comments · Fixed by #20303
Closed

Renovate does not update buildscript-gradle.lockfile #20289

chhch opened this issue Feb 8, 2023 · 5 comments · Fixed by #20303
Labels
manager:gradle Gradle package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others regression Issue about a regression bug, or the PR caused it status:in-progress Someone is working on implementation type:bug Bug fix of existing functionality

Comments

@chhch
Copy link

chhch commented Feb 8, 2023

How are you running Renovate?

Mend Renovate hosted app on github.com

If you're self-hosting Renovate, tell us what version of Renovate you run.

No response

If you're self-hosting Renovate, select which platform you are using.

None

If you're self-hosting Renovate, tell us what version of the platform you run.

No response

Was this something which used to work for you, and then stopped?

I never saw this working

Describe the bug

When I use Renovate in a repository with buildscript-gradle.lockfile, Renovate is not able to update an existing buildscript-gradle.lockfile, see minimal reproductions.

Relevant debug logs

Logs
Command failed: docker run --rm --name=renovate_sidecar --label=renovate_child -v "/mnt/renovate/gh/chhch/renovate-gradle-lock-file-example":"/mnt/renovate/gh/chhch/renovate-gradle-lock-file-example" -v "/tmp/renovate-cache":"/tmp/renovate-cache" -v "/tmp/containerbase":"/tmp/containerbase" -e GRADLE_OPTS -e BUILDPACK_CACHE_DIR -e CONTAINERBASE_CACHE_DIR -w "/mnt/renovate/gh/chhch/renovate-gradle-lock-file-example" docker.io/renovate/sidecar bash -l -c "install-tool java 16.0.2+7 && ./gradlew --console=plain -q properties"
openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'renovate-gradle-lock-file-example'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:1.1.0.
     Required by:
         project :
      > Cannot find a version of 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin' that satisfies the version constraints:
           Dependency path ':renovate-gradle-lock-file-example:unspecified' --> 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:1.1.0'
           Constraint path ':renovate-gradle-lock-file-example:unspecified' --> 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:{strictly 1.0.15.RELEASE}' because of the following reason: dependency was locked to version '1.0.15.RELEASE'

   > Could not resolve io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:{strictly 1.0.15.RELEASE}.
     Required by:
         project :
      > Cannot find a version of 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin' that satisfies the version constraints:
           Dependency path ':renovate-gradle-lock-file-example:unspecified' --> 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:1.1.0'
           Constraint path ':renovate-gradle-lock-file-example:unspecified' --> 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:{strictly 1.0.15.RELEASE}' because of the following reason: dependency was locked to version '1.0.15.RELEASE'


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 41s

Have you created a minimal reproduction repository?

I have linked to a minimal reproduction repository in the bug description

@chhch chhch added priority-5-triage status:requirements Full requirements are not yet known, so implementation should not be started type:bug Bug fix of existing functionality labels Feb 8, 2023
@viceice viceice added manager:gradle Gradle package manager regression Issue about a regression bug, or the PR caused it labels Feb 8, 2023
@viceice
Copy link
Member

viceice commented Feb 8, 2023

@viceice
Copy link
Member

viceice commented Feb 8, 2023

@Churro @zharinov can you have a look?

@Churro
Copy link
Collaborator

Churro commented Feb 8, 2023

Confirmed.

The issue only exists with buildscript dependencies, as they are needed for the build itself. Gradle detects that the lock file diverges from the dependencies specified in the build file and flags this when reading the list of subprojects.

@viceice viceice added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:in-progress Someone is working on implementation reproduction:confirmed and removed status:requirements Full requirements are not yet known, so implementation should not be started reproduction:provided labels Feb 8, 2023
@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 34.128.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@chhch
Copy link
Author

chhch commented Feb 9, 2023

Vielen Dank! ❤️

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
manager:gradle Gradle package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others regression Issue about a regression bug, or the PR caused it status:in-progress Someone is working on implementation type:bug Bug fix of existing functionality
Projects
None yet
4 participants