Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: renovatebot/renovate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 39.213.4
Choose a base ref
...
head repository: renovatebot/renovate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 39.213.5
Choose a head ref
  • 3 commits
  • 9 files changed
  • 2 contributors

Commits on Mar 25, 2025

  1. chore(deps): update dependency eslint-import-resolver-typescript to v…

    …4.2.0 (main) (#34987)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 25, 2025
    Copy the full SHA
    926042b View commit details
  2. Copy the full SHA
    c43be22 View commit details
  3. fix(deps): update ghcr.io/renovatebot/base-image docker tag to v9.51.…

    …3 (main) (#34989)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 25, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a3bec10 View commit details
3 changes: 2 additions & 1 deletion lib/config/presets/parse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import is from '@sindresorhus/is';
import { regEx } from '../../util/regex';
import { isHttpUrl } from '../../util/url';
import type { ParsedPreset } from './types';
import { PRESET_INVALID, PRESET_PROHIBITED_SUBPRESET } from './util';

@@ -30,7 +31,7 @@ export function parsePreset(input: string): ParsedPreset {
} else if (str.startsWith('local>')) {
presetSource = 'local';
str = str.substring('local>'.length);
} else if (str.startsWith('http://') || str.startsWith('https://')) {
} else if (isHttpUrl(str)) {
presetSource = 'http';
} else if (
!str.startsWith('@') &&
3 changes: 2 additions & 1 deletion lib/modules/manager/bazel/rules/git.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import parseGithubUrl from 'github-url-from-git';
import { z } from 'zod';
import { logger } from '../../../../logger';
import { regEx } from '../../../../util/regex';
import { isHttpUrl } from '../../../../util/url';
import { GithubReleasesDatasource } from '../../../datasource/github-releases';
import { GithubTagsDatasource } from '../../../datasource/github-tags';
import type { PackageDependency } from '../../types';
@@ -12,7 +13,7 @@ const githubUrlRegex = regEx(

function githubPackageName(input: string): string | undefined {
// istanbul ignore if
if (!input.startsWith('https://')) {
if (!isHttpUrl(input)) {
logger.once.info({ url: input }, `Bazel: non-https git_repository URL`);
}
return parseGithubUrl(input)?.match(githubUrlRegex)?.groups?.packageName;
3 changes: 2 additions & 1 deletion lib/modules/manager/bundler/extract.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import is from '@sindresorhus/is';
import { logger } from '../../../logger';
import { readLocalFile } from '../../../util/fs';
import { newlineRegex, regEx } from '../../../util/regex';
import { isHttpUrl } from '../../../util/url';
import { GitRefsDatasource } from '../../datasource/git-refs';
import { RubyVersionDatasource } from '../../datasource/ruby-version';
import { RubygemsDatasource } from '../../datasource/rubygems';
@@ -170,7 +171,7 @@ export async function extractPackageFile(
const gitUrl = gitRefsMatch.gitUrl;
dep.packageName = gitUrl;

if (gitUrl.startsWith('https://')) {
if (isHttpUrl(gitUrl)) {
dep.sourceUrl = gitUrl.replace(/\.git$/, '');
}
} else if (gitRefsMatch.repoName) {
7 changes: 5 additions & 2 deletions lib/modules/manager/cake/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import moo from 'moo';
import type { Category } from '../../../constants';
import { regEx } from '../../../util/regex';
import { isHttpUrl } from '../../../util/url';
import { NugetDatasource } from '../../datasource/nuget';
import type { PackageDependency, PackageFileContent } from '../types';

@@ -34,7 +35,9 @@ function parseDependencyLine(line: string): PackageDependency | null {
const isEmptyHost = url.startsWith('?');
url = isEmptyHost ? `http://localhost/${url}` : url;

const { origin, pathname, protocol, searchParams } = new URL(url);
const parsedUrl = new URL(url);
const { origin, pathname, searchParams } = parsedUrl;

const registryUrl = `${origin}${pathname}`;

const depName = searchParams.get('package')!;
@@ -47,7 +50,7 @@ function parseDependencyLine(line: string): PackageDependency | null {
};

if (!isEmptyHost) {
if (protocol.startsWith('http')) {
if (isHttpUrl(parsedUrl)) {
result.registryUrls = [registryUrl];
} else {
result.skipReason = 'unsupported-url';
3 changes: 2 additions & 1 deletion lib/modules/manager/deps-edn/extract.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import is from '@sindresorhus/is';
import { regEx } from '../../../util/regex';
import { isHttpUrl } from '../../../util/url';
import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags';
import { ClojureDatasource } from '../../datasource/clojure';
import { CLOJARS_REPO } from '../../datasource/clojure/common';
@@ -118,7 +119,7 @@ function resolveGitPackageFromEdnVal(

dep.datasource = GitRefsDatasource.id;
dep.packageName = gitUrl;
if (gitUrl.startsWith('https://')) {
if (isHttpUrl(gitUrl)) {
dep.sourceUrl = gitUrl.replace(/\.git$/, '');
}
}
5 changes: 3 additions & 2 deletions lib/modules/manager/flux/extract.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ import { logger } from '../../../logger';
import { coerceArray } from '../../../util/array';
import { readLocalFile } from '../../../util/fs';
import { regEx } from '../../../util/regex';
import { isHttpUrl } from '../../../util/url';
import { parseYaml } from '../../../util/yaml';
import { BitbucketTagsDatasource } from '../../datasource/bitbucket-tags';
import { DockerDatasource } from '../../datasource/docker';
@@ -102,7 +103,7 @@ function resolveGitRepositoryPerSourceTag(

dep.datasource = GitTagsDatasource.id;
dep.packageName = gitUrl;
if (gitUrl.startsWith('https://')) {
if (isHttpUrl(gitUrl)) {
dep.sourceUrl = gitUrl.replace(/\.git$/, '');
}
}
@@ -247,7 +248,7 @@ function resolveResourceManifest(
dep.datasource = GitRefsDatasource.id;
dep.packageName = gitUrl;
dep.replaceString = resource.spec.ref.commit;
if (gitUrl.startsWith('https://')) {
if (isHttpUrl(gitUrl)) {
dep.sourceUrl = gitUrl.replace(/\.git$/, '');
}
} else if (resource.spec.ref?.tag) {
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -322,7 +322,7 @@
"eslint": "9.22.0",
"eslint-config-prettier": "10.1.1",
"eslint-formatter-gha": "1.5.2",
"eslint-import-resolver-typescript": "4.1.1",
"eslint-import-resolver-typescript": "4.2.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-promise": "7.2.1",
"expect-more-jest": "5.5.0",
30 changes: 17 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -5,19 +5,19 @@ ARG BASE_IMAGE_TYPE=slim
# --------------------------------------
# slim image
# --------------------------------------
FROM ghcr.io/renovatebot/base-image:9.51.2@sha256:150b7b809c27d5e9910dd223d6aa878336e211810cb48062a8403e1febfa79eb AS slim-base
FROM ghcr.io/renovatebot/base-image:9.51.3@sha256:2e1555048a90d66b2a50435b2807f2ec4bea9cd34d355b2f709043aec55bdf44 AS slim-base

# --------------------------------------
# full image
# --------------------------------------
FROM ghcr.io/renovatebot/base-image:9.51.2-full@sha256:4abaa688c9382280f0d99b591cd66a7e5292f592b1fd6c1281f32bde3a0156f9 AS full-base
FROM ghcr.io/renovatebot/base-image:9.51.3-full@sha256:48dc80b34fd7c0994945156bdb533eef698f3ec2ef16108a47b457ddaebcc109 AS full-base

ENV RENOVATE_BINARY_SOURCE=global

# --------------------------------------
# build image
# --------------------------------------
FROM --platform=$BUILDPLATFORM ghcr.io/renovatebot/base-image:9.51.2@sha256:150b7b809c27d5e9910dd223d6aa878336e211810cb48062a8403e1febfa79eb AS build
FROM --platform=$BUILDPLATFORM ghcr.io/renovatebot/base-image:9.51.3@sha256:2e1555048a90d66b2a50435b2807f2ec4bea9cd34d355b2f709043aec55bdf44 AS build

# We want a specific node version here
# renovate: datasource=github-releases packageName=containerbase/node-prebuild versioning=node