Skip to content

build(deps): Skip NDK sample during Renovate lockfile updates - #1368

Open
runningcode wants to merge 1 commit into
mainfrom
no/renovate-disable-ndk
Open

build(deps): Skip NDK sample during Renovate lockfile updates#1368
runningcode wants to merge 1 commit into
mainfrom
no/renovate-disable-ndk

Conversation

@runningcode

@runningcode runningcode commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Renovate updates a dependency and then regenerates the Gradle lockfile. Since the changed dependency lives in the root gradle/libs.versions.toml, Renovate runs the root gradlew, which evaluates the root settings.gradle.kts and includes :examples:android-ndk. Configuring that sample makes AGP set up the NDK — which isn't available in Renovate's environment — so the relock fails, leaving a stale lockfile that then breaks the PR build (e.g. #1363).

The android-ndk sample is never needed to resolve dependencies, so this skips it on dependency-resolution runs. Rather than a custom env var (which Renovate only forwards if a bot admin allowlists it via allowedEnv), the sample is gated on Gradle's own start parameters: Renovate always invokes Gradle with --write-locks/--update-locks and --dependency-verification lenient, none of which normal dev and CI builds use. So those builds still build the sample, and the fix needs no Renovate/Mend configuration.

#skip-changelog

🤖 Generated with Claude Code

Renovate regenerates the Gradle lockfile using the root gradlew, which
evaluates the root settings and includes the android-ndk sample.
Configuring that sample makes AGP set up the NDK, which is absent in
Renovate's environment, so dependency bumps failed while relocking and
left a stale lockfile that then broke the PR build.

Skip the sample on dependency-resolution runs, detected from Gradle's
own start parameters: Renovate always passes --write-locks/--update-locks
and --dependency-verification lenient, none of which normal dev and CI
builds use. The sample is never needed to resolve dependencies, so this
keeps every other build unchanged without relying on a custom env var
(which would need Mend to allowlist it via allowedEnv).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@runningcode
runningcode force-pushed the no/renovate-disable-ndk branch from 9d79eca to c33ae86 Compare July 21, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants