renovate 40.0.0-next.3 → 40.0.0-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/decrypt/legacy.js +0 -1
- package/dist/config/decrypt/legacy.js.map +1 -1
- package/dist/config/decrypt.d.ts +3 -1
- package/dist/config/decrypt.js +56 -13
- package/dist/config/decrypt.js.map +1 -1
- package/dist/config/migrate-validate.js +3 -2
- package/dist/config/migrate-validate.js.map +1 -1
- package/dist/config/migration.js +2 -1
- package/dist/config/migration.js.map +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js +1 -1
- package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
- package/dist/config/options/index.js +4 -3
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/parse.js +2 -2
- package/dist/config/parse.js.map +1 -1
- package/dist/config/presets/gitea/index.js +0 -1
- package/dist/config/presets/gitea/index.js.map +1 -1
- package/dist/config/presets/github/index.js +0 -1
- package/dist/config/presets/github/index.js.map +1 -1
- package/dist/config/presets/gitlab/index.js +1 -1
- package/dist/config/presets/gitlab/index.js.map +1 -1
- package/dist/config/presets/http/index.js +1 -2
- package/dist/config/presets/http/index.js.map +1 -1
- package/dist/config/presets/index.js +0 -7
- package/dist/config/presets/index.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +3 -4
- package/dist/config/presets/internal/custom-managers.js.map +1 -1
- package/dist/config/presets/internal/group.js +30 -1
- package/dist/config/presets/internal/group.js.map +1 -1
- package/dist/config/presets/internal/index.js +1 -3
- package/dist/config/presets/internal/index.js.map +1 -1
- package/dist/config/presets/internal/workarounds.js +1 -0
- package/dist/config/presets/internal/workarounds.js.map +1 -1
- package/dist/config/presets/parse.js +2 -1
- package/dist/config/presets/parse.js.map +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/config/types.d.ts +4 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config/validation.js +3 -5
- package/dist/config/validation.js.map +1 -1
- package/dist/config-validator.js +0 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/constants/category.js +0 -1
- package/dist/constants/category.js.map +1 -1
- package/dist/data/monorepo.json +5 -1
- package/dist/data/source-urls.json +1 -0
- package/dist/instrumentation/index.js +17 -13
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation/utils.js +1 -1
- package/dist/instrumentation/utils.js.map +1 -1
- package/dist/logger/cmd-serializer.js +0 -1
- package/dist/logger/cmd-serializer.js.map +1 -1
- package/dist/logger/config-serializer.js +0 -1
- package/dist/logger/config-serializer.js.map +1 -1
- package/dist/logger/index.js +1 -4
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/once.js +4 -2
- package/dist/logger/once.js.map +1 -1
- package/dist/logger/pretty-stdout.js +0 -1
- package/dist/logger/pretty-stdout.js.map +1 -1
- package/dist/logger/renovate-logger.js +1 -1
- package/dist/logger/renovate-logger.js.map +1 -1
- package/dist/logger/utils.js +6 -11
- package/dist/logger/utils.js.map +1 -1
- package/dist/modules/datasource/api.js +2 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/artifactory/index.js +1 -2
- package/dist/modules/datasource/artifactory/index.js.map +1 -1
- package/dist/modules/datasource/aws-eks-addon/index.d.ts +11 -0
- package/dist/modules/datasource/aws-eks-addon/index.js +75 -0
- package/dist/modules/datasource/aws-eks-addon/index.js.map +1 -0
- package/dist/modules/datasource/aws-eks-addon/schema.d.ts +40 -0
- package/dist/modules/datasource/aws-eks-addon/schema.js +31 -0
- package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -0
- package/dist/modules/datasource/aws-machine-image/index.js +6 -5
- package/dist/modules/datasource/aws-machine-image/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js +11 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +16 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js +2 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
- package/dist/modules/datasource/bazel/index.js +0 -1
- package/dist/modules/datasource/bazel/index.js.map +1 -1
- package/dist/modules/datasource/bitrise/index.js +1 -1
- package/dist/modules/datasource/bitrise/index.js.map +1 -1
- package/dist/modules/datasource/cdnjs/schema.d.ts +2 -2
- package/dist/modules/datasource/conda/index.js +18 -1
- package/dist/modules/datasource/conda/index.js.map +1 -1
- package/dist/modules/datasource/conda/prefix-dev.d.ts +3 -0
- package/dist/modules/datasource/conda/prefix-dev.js +83 -0
- package/dist/modules/datasource/conda/prefix-dev.js.map +1 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.d.ts +189 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.js +31 -0
- package/dist/modules/datasource/conda/schema/prefix-dev.js.map +1 -0
- package/dist/modules/datasource/conda/types.d.ts +1 -20
- package/dist/modules/datasource/conda/types.js.map +1 -1
- package/dist/modules/datasource/cpan/index.js +1 -1
- package/dist/modules/datasource/cpan/index.js.map +1 -1
- package/dist/modules/datasource/crate/index.js +3 -3
- package/dist/modules/datasource/crate/index.js.map +1 -1
- package/dist/modules/datasource/custom/formats/html.js +1 -1
- package/dist/modules/datasource/custom/formats/html.js.map +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js.map +1 -1
- package/dist/modules/datasource/custom/index.js +4 -2
- package/dist/modules/datasource/custom/index.js.map +1 -1
- package/dist/modules/datasource/custom/schema.d.ts +22 -22
- package/dist/modules/datasource/custom/utils.js +1 -0
- package/dist/modules/datasource/custom/utils.js.map +1 -1
- package/dist/modules/datasource/dart/index.js +1 -1
- package/dist/modules/datasource/dart/index.js.map +1 -1
- package/dist/modules/datasource/dart-version/index.js +1 -1
- package/dist/modules/datasource/dart-version/index.js.map +1 -1
- package/dist/modules/datasource/datasource.js +0 -1
- package/dist/modules/datasource/datasource.js.map +1 -1
- package/dist/modules/datasource/deb/index.js +2 -2
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/deno/index.js +1 -1
- package/dist/modules/datasource/deno/index.js.map +1 -1
- package/dist/modules/datasource/deno/schema.d.ts +1 -1
- package/dist/modules/datasource/devbox/index.js +0 -1
- package/dist/modules/datasource/devbox/index.js.map +1 -1
- package/dist/modules/datasource/docker/common.js +5 -2
- package/dist/modules/datasource/docker/common.js.map +1 -1
- package/dist/modules/datasource/docker/index.js +10 -8
- package/dist/modules/datasource/docker/index.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +5 -5
- package/dist/modules/datasource/docker/schema.js +2 -1
- package/dist/modules/datasource/docker/schema.js.map +1 -1
- package/dist/modules/datasource/flutter-version/index.js +1 -1
- package/dist/modules/datasource/flutter-version/index.js.map +1 -1
- package/dist/modules/datasource/galaxy/schema.d.ts +1 -1
- package/dist/modules/datasource/galaxy-collection/schema.d.ts +8 -8
- package/dist/modules/datasource/git-refs/index.js +1 -1
- package/dist/modules/datasource/git-refs/index.js.map +1 -1
- package/dist/modules/datasource/gitea-releases/schema.d.ts +2 -2
- package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
- package/dist/modules/datasource/github-release-attachments/index.js +2 -2
- package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
- package/dist/modules/datasource/gitlab-packages/index.js +1 -1
- package/dist/modules/datasource/gitlab-packages/index.js.map +1 -1
- package/dist/modules/datasource/gitlab-releases/index.js +1 -3
- package/dist/modules/datasource/gitlab-releases/index.js.map +1 -1
- package/dist/modules/datasource/go/base.js +1 -1
- package/dist/modules/datasource/go/base.js.map +1 -1
- package/dist/modules/datasource/go/index.js +1 -1
- package/dist/modules/datasource/go/index.js.map +1 -1
- package/dist/modules/datasource/go/releases-direct.js +7 -4
- package/dist/modules/datasource/go/releases-direct.js.map +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js +1 -1
- package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
- package/dist/modules/datasource/golang-version/index.js +2 -2
- package/dist/modules/datasource/golang-version/index.js.map +1 -1
- package/dist/modules/datasource/gradle-version/index.js +1 -1
- package/dist/modules/datasource/gradle-version/index.js.map +1 -1
- package/dist/modules/datasource/helm/index.js +1 -1
- package/dist/modules/datasource/helm/index.js.map +1 -1
- package/dist/modules/datasource/hex/index.js +1 -1
- package/dist/modules/datasource/hex/index.js.map +1 -1
- package/dist/modules/datasource/hex/schema.d.ts +11 -11
- package/dist/modules/datasource/hexpm-bob/index.js +1 -1
- package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
- package/dist/modules/datasource/index.js +4 -4
- package/dist/modules/datasource/index.js.map +1 -1
- package/dist/modules/datasource/java-version/index.js +0 -1
- package/dist/modules/datasource/java-version/index.js.map +1 -1
- package/dist/modules/datasource/jenkins-plugins/index.js +1 -1
- package/dist/modules/datasource/jenkins-plugins/index.js.map +1 -1
- package/dist/modules/datasource/maven/index.js +35 -27
- package/dist/modules/datasource/maven/index.js.map +1 -1
- package/dist/modules/datasource/maven/types.d.ts +3 -6
- package/dist/modules/datasource/maven/types.js.map +1 -1
- package/dist/modules/datasource/maven/util.d.ts +4 -5
- package/dist/modules/datasource/maven/util.js +94 -157
- package/dist/modules/datasource/maven/util.js.map +1 -1
- package/dist/modules/datasource/node-version/index.js +1 -1
- package/dist/modules/datasource/node-version/index.js.map +1 -1
- package/dist/modules/datasource/npm/index.js +1 -1
- package/dist/modules/datasource/npm/index.js.map +1 -1
- package/dist/modules/datasource/npm/npmrc.js +1 -1
- package/dist/modules/datasource/npm/npmrc.js.map +1 -1
- package/dist/modules/datasource/nuget/index.js +1 -1
- package/dist/modules/datasource/nuget/index.js.map +1 -1
- package/dist/modules/datasource/nuget/v2.js +1 -1
- package/dist/modules/datasource/nuget/v2.js.map +1 -1
- package/dist/modules/datasource/nuget/v3.js +6 -6
- package/dist/modules/datasource/nuget/v3.js.map +1 -1
- package/dist/modules/datasource/orb/index.js +1 -1
- package/dist/modules/datasource/orb/index.js.map +1 -1
- package/dist/modules/datasource/packagist/index.js +2 -2
- package/dist/modules/datasource/packagist/index.js.map +1 -1
- package/dist/modules/datasource/packagist/schema.d.ts +25 -25
- package/dist/modules/datasource/pod/index.js +2 -2
- package/dist/modules/datasource/pod/index.js.map +1 -1
- package/dist/modules/datasource/postprocess-release.js +1 -1
- package/dist/modules/datasource/postprocess-release.js.map +1 -1
- package/dist/modules/datasource/pypi/index.js +1 -1
- package/dist/modules/datasource/pypi/index.js.map +1 -1
- package/dist/modules/datasource/python-version/index.js +1 -1
- package/dist/modules/datasource/python-version/index.js.map +1 -1
- package/dist/modules/datasource/repology/index.js +1 -1
- package/dist/modules/datasource/repology/index.js.map +1 -1
- package/dist/modules/datasource/ruby-version/index.js +1 -1
- package/dist/modules/datasource/ruby-version/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/index.js +2 -2
- package/dist/modules/datasource/rubygems/index.js.map +1 -1
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
- package/dist/modules/datasource/rubygems/versions-endpoint-cache.js.map +1 -1
- package/dist/modules/datasource/sbt-package/index.js +1 -1
- package/dist/modules/datasource/sbt-package/index.js.map +1 -1
- package/dist/modules/datasource/sbt-plugin/index.js +1 -1
- package/dist/modules/datasource/sbt-plugin/index.js.map +1 -1
- package/dist/modules/datasource/schema.d.ts +4 -4
- package/dist/modules/datasource/terraform-module/index.js +1 -1
- package/dist/modules/datasource/terraform-module/index.js.map +1 -1
- package/dist/modules/datasource/terraform-provider/index.js +2 -3
- package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
- package/dist/modules/datasource/types.d.ts +1 -0
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/datasource/unity3d/index.d.ts +4 -1
- package/dist/modules/datasource/unity3d/index.js +36 -42
- package/dist/modules/datasource/unity3d/index.js.map +1 -1
- package/dist/modules/datasource/unity3d/schema.d.ts +47 -0
- package/dist/modules/datasource/unity3d/schema.js +17 -0
- package/dist/modules/datasource/unity3d/schema.js.map +1 -0
- package/dist/modules/manager/api.js +2 -0
- package/dist/modules/manager/api.js.map +1 -1
- package/dist/modules/manager/argocd/extract.js +1 -1
- package/dist/modules/manager/argocd/extract.js.map +1 -1
- package/dist/modules/manager/argocd/schema.d.ts +10 -10
- package/dist/modules/manager/asdf/upgradeable-tooling.js +94 -0
- package/dist/modules/manager/asdf/upgradeable-tooling.js.map +1 -1
- package/dist/modules/manager/azure-pipelines/schema.d.ts +32 -32
- package/dist/modules/manager/batect/schema.d.ts +4 -4
- package/dist/modules/manager/batect-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/batect-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/bazel/rules/docker.d.ts +6 -6
- package/dist/modules/manager/bazel/rules/git.d.ts +10 -10
- package/dist/modules/manager/bazel/rules/git.js +9 -2
- package/dist/modules/manager/bazel/rules/git.js.map +1 -1
- package/dist/modules/manager/bazel/rules/go.d.ts +5 -5
- package/dist/modules/manager/bazel/rules/maven.d.ts +7 -7
- package/dist/modules/manager/bazel/rules/oci.d.ts +6 -6
- package/dist/modules/manager/bazel-module/parser/fragments.d.ts +40 -40
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +40 -40
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +17 -17
- package/dist/modules/manager/bazel-module/rules.d.ts +40 -40
- package/dist/modules/manager/bun/artifacts.js +0 -1
- package/dist/modules/manager/bun/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/artifacts.js +0 -1
- package/dist/modules/manager/bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/extract.js +2 -1
- package/dist/modules/manager/bundler/extract.js.map +1 -1
- package/dist/modules/manager/cake/index.js +4 -2
- package/dist/modules/manager/cake/index.js.map +1 -1
- package/dist/modules/manager/cargo/artifacts.js +5 -7
- package/dist/modules/manager/cargo/artifacts.js.map +1 -1
- package/dist/modules/manager/cargo/schema.d.ts +114 -114
- package/dist/modules/manager/cocoapods/artifacts.js +1 -2
- package/dist/modules/manager/cocoapods/artifacts.js.map +1 -1
- package/dist/modules/manager/composer/artifacts.js +1 -2
- package/dist/modules/manager/composer/artifacts.js.map +1 -1
- package/dist/modules/manager/composer/schema.d.ts +26 -26
- package/dist/modules/manager/composer/schema.js +1 -1
- package/dist/modules/manager/composer/schema.js.map +1 -1
- package/dist/modules/manager/composer/utils.d.ts +1 -0
- package/dist/modules/manager/composer/utils.js +18 -6
- package/dist/modules/manager/composer/utils.js.map +1 -1
- package/dist/modules/manager/copier/artifacts.js +0 -1
- package/dist/modules/manager/copier/artifacts.js.map +1 -1
- package/dist/modules/manager/crossplane/schema.d.ts +2 -2
- package/dist/modules/manager/custom/jsonata/index.js +4 -0
- package/dist/modules/manager/custom/jsonata/index.js.map +1 -1
- package/dist/modules/manager/custom/jsonata/schema.d.ts +21 -21
- package/dist/modules/manager/custom/regex/index.js +2 -0
- package/dist/modules/manager/custom/regex/index.js.map +1 -1
- package/dist/modules/manager/deps-edn/extract.js +2 -1
- package/dist/modules/manager/deps-edn/extract.js.map +1 -1
- package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
- package/dist/modules/manager/devbox/artifacts.js +28 -11
- package/dist/modules/manager/devbox/artifacts.js.map +1 -1
- package/dist/modules/manager/devbox/schema.js +1 -1
- package/dist/modules/manager/devbox/schema.js.map +1 -1
- package/dist/modules/manager/devcontainer/extract.js +43 -1
- package/dist/modules/manager/devcontainer/extract.js.map +1 -1
- package/dist/modules/manager/devcontainer/index.js +11 -1
- package/dist/modules/manager/devcontainer/index.js.map +1 -1
- package/dist/modules/manager/devcontainer/schema.d.ts +7 -3
- package/dist/modules/manager/devcontainer/schema.js +3 -1
- package/dist/modules/manager/devcontainer/schema.js.map +1 -1
- package/dist/modules/manager/docker-compose/schema.d.ts +6 -6
- package/dist/modules/manager/fingerprint.generated.js +86 -85
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/flux/artifacts.js +0 -1
- package/dist/modules/manager/flux/artifacts.js.map +1 -1
- package/dist/modules/manager/flux/extract.js +27 -24
- package/dist/modules/manager/flux/extract.js.map +1 -1
- package/dist/modules/manager/flux/schema.d.ts +94 -94
- package/dist/modules/manager/github-actions/extract.js +60 -39
- package/dist/modules/manager/github-actions/extract.js.map +1 -1
- package/dist/modules/manager/github-actions/schema.d.ts +66 -0
- package/dist/modules/manager/github-actions/schema.js +38 -0
- package/dist/modules/manager/github-actions/schema.js.map +1 -0
- package/dist/modules/manager/gitlabci/extract.d.ts +1 -5
- package/dist/modules/manager/gitlabci/extract.js +27 -126
- package/dist/modules/manager/gitlabci/extract.js.map +1 -1
- package/dist/modules/manager/gitlabci/schema.d.ts +55 -0
- package/dist/modules/manager/gitlabci/schema.js +63 -0
- package/dist/modules/manager/gitlabci/schema.js.map +1 -0
- package/dist/modules/manager/gitlabci-include/extract.js +6 -54
- package/dist/modules/manager/gitlabci-include/extract.js.map +1 -1
- package/dist/modules/manager/gitlabci-include/schema.d.ts +13 -0
- package/dist/modules/manager/gitlabci-include/schema.js +46 -0
- package/dist/modules/manager/gitlabci-include/schema.js.map +1 -0
- package/dist/modules/manager/glasskube/schema.d.ts +8 -8
- package/dist/modules/manager/gomod/artifacts.js +24 -10
- package/dist/modules/manager/gomod/artifacts.js.map +1 -1
- package/dist/modules/manager/gomod/extract.js +23 -0
- package/dist/modules/manager/gomod/extract.js.map +1 -1
- package/dist/modules/manager/gomod/line-parser.js +16 -0
- package/dist/modules/manager/gomod/line-parser.js.map +1 -1
- package/dist/modules/manager/gomod/update.js +2 -2
- package/dist/modules/manager/gomod/update.js.map +1 -1
- package/dist/modules/manager/gradle/artifacts.js +0 -1
- package/dist/modules/manager/gradle/artifacts.js.map +1 -1
- package/dist/modules/manager/gradle/extract/catalog.js +1 -1
- package/dist/modules/manager/gradle/extract/catalog.js.map +1 -1
- package/dist/modules/manager/gradle/parser/assignments.js +2 -2
- package/dist/modules/manager/gradle/parser/assignments.js.map +1 -1
- package/dist/modules/manager/gradle/parser/handlers.d.ts +1 -2
- package/dist/modules/manager/gradle/parser/handlers.js +10 -25
- package/dist/modules/manager/gradle/parser/handlers.js.map +1 -1
- package/dist/modules/manager/gradle/parser/registry-urls.js +11 -3
- package/dist/modules/manager/gradle/parser/registry-urls.js.map +1 -1
- package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -2
- package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/helmfile/artifacts.js +0 -1
- package/dist/modules/manager/helmfile/artifacts.js.map +1 -1
- package/dist/modules/manager/helmfile/extract.js +4 -0
- package/dist/modules/manager/helmfile/extract.js.map +1 -1
- package/dist/modules/manager/helmfile/schema.d.ts +9 -9
- package/dist/modules/manager/helmv3/artifacts.js +0 -1
- package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
- package/dist/modules/manager/helmv3/utils.js +3 -1
- package/dist/modules/manager/helmv3/utils.js.map +1 -1
- package/dist/modules/manager/hermit/artifacts.js +0 -1
- package/dist/modules/manager/hermit/artifacts.js.map +1 -1
- package/dist/modules/manager/homebrew/extract.js +0 -1
- package/dist/modules/manager/homebrew/extract.js.map +1 -1
- package/dist/modules/manager/jsonnet-bundler/artifacts.js +0 -1
- package/dist/modules/manager/jsonnet-bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/kustomize/artifacts.d.ts +2 -0
- package/dist/modules/manager/kustomize/artifacts.js +154 -0
- package/dist/modules/manager/kustomize/artifacts.js.map +1 -0
- package/dist/modules/manager/kustomize/common.d.ts +3 -0
- package/dist/modules/manager/kustomize/common.js +22 -0
- package/dist/modules/manager/kustomize/common.js.map +1 -0
- package/dist/modules/manager/kustomize/index.d.ts +1 -0
- package/dist/modules/manager/kustomize/index.js +3 -1
- package/dist/modules/manager/kustomize/index.js.map +1 -1
- package/dist/modules/manager/kustomize/types.d.ts +4 -0
- package/dist/modules/manager/kustomize/types.js.map +1 -1
- package/dist/modules/manager/maven/extract.js +3 -1
- package/dist/modules/manager/maven/extract.js.map +1 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js +0 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js.map +1 -1
- package/dist/modules/manager/mise/extract.js +1 -1
- package/dist/modules/manager/mise/extract.js.map +1 -1
- package/dist/modules/manager/mix/artifacts.js +64 -14
- package/dist/modules/manager/mix/artifacts.js.map +1 -1
- package/dist/modules/manager/mix/index.d.ts +1 -0
- package/dist/modules/manager/mix/index.js +2 -1
- package/dist/modules/manager/mix/index.js.map +1 -1
- package/dist/modules/manager/nix/artifacts.js +0 -1
- package/dist/modules/manager/nix/artifacts.js.map +1 -1
- package/dist/modules/manager/nix/extract.js +1 -1
- package/dist/modules/manager/nix/extract.js.map +1 -1
- package/dist/modules/manager/nix/schema.d.ts +18 -18
- package/dist/modules/manager/npm/artifacts.js +0 -1
- package/dist/modules/manager/npm/artifacts.js.map +1 -1
- package/dist/modules/manager/npm/extract/yarn.js +2 -2
- package/dist/modules/manager/npm/extract/yarn.js.map +1 -1
- package/dist/modules/manager/npm/post-update/npm.js +0 -1
- package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/pnpm.js +13 -2
- package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
- package/dist/modules/manager/npm/post-update/rules.js +11 -1
- package/dist/modules/manager/npm/post-update/rules.js.map +1 -1
- package/dist/modules/manager/npm/post-update/yarn.js +0 -1
- package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
- package/dist/modules/manager/npm/schema.d.ts +13 -13
- package/dist/modules/manager/npm/update/dependency/index.js +1 -1
- package/dist/modules/manager/npm/update/dependency/index.js.map +1 -1
- package/dist/modules/manager/nuget/artifacts.js +1 -2
- package/dist/modules/manager/nuget/artifacts.js.map +1 -1
- package/dist/modules/manager/nuget/package-tree.js +4 -0
- package/dist/modules/manager/nuget/package-tree.js.map +1 -1
- package/dist/modules/manager/nuget/schema.d.ts +8 -8
- package/dist/modules/manager/nuget/util.js +4 -1
- package/dist/modules/manager/nuget/util.js.map +1 -1
- package/dist/modules/manager/ocb/schema.d.ts +6 -6
- package/dist/modules/manager/pep621/processors/pdm.js +0 -1
- package/dist/modules/manager/pep621/processors/pdm.js.map +1 -1
- package/dist/modules/manager/pep621/processors/uv.js +0 -1
- package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
- package/dist/modules/manager/pep621/schema.d.ts +59 -54
- package/dist/modules/manager/pep621/schema.js +2 -0
- package/dist/modules/manager/pep621/schema.js.map +1 -1
- package/dist/modules/manager/pep621/utils.js +1 -1
- package/dist/modules/manager/pep621/utils.js.map +1 -1
- package/dist/modules/manager/pip-compile/common.js +0 -1
- package/dist/modules/manager/pip-compile/common.js.map +1 -1
- package/dist/modules/manager/pip_requirements/artifacts.js +0 -1
- package/dist/modules/manager/pip_requirements/artifacts.js.map +1 -1
- package/dist/modules/manager/pipenv/artifacts.js +0 -1
- package/dist/modules/manager/pipenv/artifacts.js.map +1 -1
- package/dist/modules/manager/pixi/artifacts.d.ts +3 -0
- package/dist/modules/manager/pixi/artifacts.js +84 -0
- package/dist/modules/manager/pixi/artifacts.js.map +1 -0
- package/dist/modules/manager/pixi/extract.d.ts +2 -0
- package/dist/modules/manager/pixi/extract.js +53 -0
- package/dist/modules/manager/pixi/extract.js.map +1 -0
- package/dist/modules/manager/pixi/index.d.ts +11 -0
- package/dist/modules/manager/pixi/index.js +22 -0
- package/dist/modules/manager/pixi/index.js.map +1 -0
- package/dist/modules/manager/pixi/lockfile.d.ts +6 -0
- package/dist/modules/manager/pixi/lockfile.js +25 -0
- package/dist/modules/manager/pixi/lockfile.js.map +1 -0
- package/dist/modules/manager/pixi/schema.d.ts +14 -0
- package/dist/modules/manager/pixi/schema.js +14 -0
- package/dist/modules/manager/pixi/schema.js.map +1 -0
- package/dist/modules/manager/poetry/artifacts.js +3 -4
- package/dist/modules/manager/poetry/artifacts.js.map +1 -1
- package/dist/modules/manager/poetry/extract.js +2 -1
- package/dist/modules/manager/poetry/extract.js.map +1 -1
- package/dist/modules/manager/poetry/schema.d.ts +48 -48
- package/dist/modules/manager/pub/artifacts.js +0 -1
- package/dist/modules/manager/pub/artifacts.js.map +1 -1
- package/dist/modules/manager/pub/schema.d.ts +8 -8
- package/dist/modules/manager/scalafmt/extract.js +1 -1
- package/dist/modules/manager/scalafmt/extract.js.map +1 -1
- package/dist/modules/manager/sveltos/schema.d.ts +12 -12
- package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
- package/dist/modules/manager/types.d.ts +6 -2
- package/dist/modules/manager/types.js.map +1 -1
- package/dist/modules/manager/vendir/schema.d.ts +4 -4
- package/dist/modules/platform/api.d.ts +1 -1
- package/dist/modules/platform/azure/azure-helper.js +2 -2
- package/dist/modules/platform/azure/azure-helper.js.map +1 -1
- package/dist/modules/platform/azure/index.js +14 -14
- package/dist/modules/platform/azure/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/comments.js +4 -4
- package/dist/modules/platform/bitbucket/comments.js.map +1 -1
- package/dist/modules/platform/bitbucket/index.d.ts +1 -0
- package/dist/modules/platform/bitbucket/index.js +54 -44
- package/dist/modules/platform/bitbucket/index.js.map +1 -1
- package/dist/modules/platform/bitbucket/schema.d.ts +11 -11
- package/dist/modules/platform/bitbucket/utils.js +3 -3
- package/dist/modules/platform/bitbucket/utils.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/index.d.ts +3 -3
- package/dist/modules/platform/bitbucket-server/index.js +81 -81
- package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/pr-cache.d.ts +23 -0
- package/dist/modules/platform/bitbucket-server/pr-cache.js +125 -0
- package/dist/modules/platform/bitbucket-server/pr-cache.js.map +1 -0
- package/dist/modules/platform/bitbucket-server/schema.d.ts +75 -0
- package/dist/modules/platform/bitbucket-server/schema.js +14 -1
- package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/types.d.ts +8 -2
- package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
- package/dist/modules/platform/bitbucket-server/utils.d.ts +0 -2
- package/dist/modules/platform/bitbucket-server/utils.js +6 -52
- package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
- package/dist/modules/platform/codecommit/codecommit-client.js +6 -6
- package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
- package/dist/modules/platform/codecommit/index.js +24 -24
- package/dist/modules/platform/codecommit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/client.js +13 -2
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.js +1 -1
- package/dist/modules/platform/gerrit/utils.js.map +1 -1
- package/dist/modules/platform/gitea/gitea-helper.d.ts +1 -0
- package/dist/modules/platform/gitea/gitea-helper.js +16 -0
- package/dist/modules/platform/gitea/gitea-helper.js.map +1 -1
- package/dist/modules/platform/gitea/index.d.ts +1 -0
- package/dist/modules/platform/gitea/index.js +26 -7
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/gitea/schema.d.ts +8 -8
- package/dist/modules/platform/gitea/types.d.ts +1 -1
- package/dist/modules/platform/gitea/types.js.map +1 -1
- package/dist/modules/platform/github/common.d.ts +2 -0
- package/dist/modules/platform/github/common.js +16 -0
- package/dist/modules/platform/github/common.js.map +1 -1
- package/dist/modules/platform/github/index.d.ts +1 -1
- package/dist/modules/platform/github/index.js +87 -82
- package/dist/modules/platform/github/index.js.map +1 -1
- package/dist/modules/platform/github/issue.d.ts +12 -12
- package/dist/modules/platform/github/massage-markdown-links.js +2 -2
- package/dist/modules/platform/github/massage-markdown-links.js.map +1 -1
- package/dist/modules/platform/github/pr.js +3 -3
- package/dist/modules/platform/github/pr.js.map +1 -1
- package/dist/modules/platform/github/schema.d.ts +76 -76
- package/dist/modules/platform/github/schema.js +3 -1
- package/dist/modules/platform/github/schema.js.map +1 -1
- package/dist/modules/platform/gitlab/index.d.ts +1 -0
- package/dist/modules/platform/gitlab/index.js +70 -43
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/platform/index.js +0 -1
- package/dist/modules/platform/index.js.map +1 -1
- package/dist/modules/platform/scm.d.ts +1 -1
- package/dist/modules/versioning/api.js +2 -0
- package/dist/modules/versioning/api.js.map +1 -1
- package/dist/modules/versioning/composer/index.js +10 -0
- package/dist/modules/versioning/composer/index.js.map +1 -1
- package/dist/modules/versioning/conda/index.d.ts +41 -0
- package/dist/modules/versioning/conda/index.js +178 -0
- package/dist/modules/versioning/conda/index.js.map +1 -0
- package/dist/modules/versioning/hashicorp/convertor.d.ts +2 -1
- package/dist/modules/versioning/hashicorp/convertor.js +13 -8
- package/dist/modules/versioning/hashicorp/convertor.js.map +1 -1
- package/dist/modules/versioning/hex/index.js +3 -3
- package/dist/modules/versioning/hex/index.js.map +1 -1
- package/dist/modules/versioning/npm/index.js +2 -1
- package/dist/modules/versioning/npm/index.js.map +1 -1
- package/dist/modules/versioning/schema.js +1 -1
- package/dist/modules/versioning/schema.js.map +1 -1
- package/dist/modules/versioning/types.d.ts +4 -0
- package/dist/modules/versioning/types.js.map +1 -1
- package/dist/proxy.js +2 -1
- package/dist/proxy.js.map +1 -1
- package/dist/renovate.js +2 -2
- package/dist/renovate.js.map +1 -1
- package/dist/util/cache/package/decorator.js +2 -2
- package/dist/util/cache/package/decorator.js.map +1 -1
- package/dist/util/cache/package/redis.js +0 -1
- package/dist/util/cache/package/redis.js.map +1 -1
- package/dist/util/cache/package/types.d.ts +1 -1
- package/dist/util/cache/package/types.js.map +1 -1
- package/dist/util/cache/repository/impl/base.d.ts +1 -1
- package/dist/util/cache/repository/schema.d.ts +4 -4
- package/dist/util/cache/repository/types.d.ts +3 -0
- package/dist/util/cache/repository/types.js.map +1 -1
- package/dist/util/env.d.ts +4 -0
- package/dist/util/env.js +22 -0
- package/dist/util/env.js.map +1 -0
- package/dist/util/exec/containerbase.js +18 -12
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/exec/index.js +5 -2
- package/dist/util/exec/index.js.map +1 -1
- package/dist/util/exec/types.d.ts +0 -2
- package/dist/util/exec/types.js.map +1 -1
- package/dist/util/exec/utils.d.ts +1 -1
- package/dist/util/exec/utils.js +6 -5
- package/dist/util/exec/utils.js.map +1 -1
- package/dist/util/git/author.js +1 -1
- package/dist/util/git/author.js.map +1 -1
- package/dist/util/git/config.js +0 -1
- package/dist/util/git/config.js.map +1 -1
- package/dist/util/git/error.js +4 -2
- package/dist/util/git/error.js.map +1 -1
- package/dist/util/git/index.js +73 -46
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/private-key.js +1 -1
- package/dist/util/git/private-key.js.map +1 -1
- package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +2 -2
- package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +2 -2
- package/dist/util/http/auth.js +0 -1
- package/dist/util/http/auth.js.map +1 -1
- package/dist/util/http/bitbucket-server.d.ts +5 -4
- package/dist/util/http/bitbucket-server.js +21 -20
- package/dist/util/http/bitbucket-server.js.map +1 -1
- package/dist/util/http/bitbucket.d.ts +6 -5
- package/dist/util/http/bitbucket.js +34 -31
- package/dist/util/http/bitbucket.js.map +1 -1
- package/dist/util/http/cache/abstract-http-cache-provider.js +2 -2
- package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
- package/dist/util/http/cache/memory-http-cache-provider.d.ts +10 -0
- package/dist/util/http/cache/memory-http-cache-provider.js +29 -0
- package/dist/util/http/cache/memory-http-cache-provider.js.map +1 -0
- package/dist/util/http/cache/schema.d.ts +2 -2
- package/dist/util/http/errors.d.ts +2 -0
- package/dist/util/http/errors.js +8 -0
- package/dist/util/http/errors.js.map +1 -0
- package/dist/util/http/gerrit.d.ts +6 -4
- package/dist/util/http/gerrit.js +11 -12
- package/dist/util/http/gerrit.js.map +1 -1
- package/dist/util/http/gitea.d.ts +5 -4
- package/dist/util/http/gitea.js +14 -13
- package/dist/util/http/gitea.js.map +1 -1
- package/dist/util/http/github.d.ts +14 -8
- package/dist/util/http/github.js +65 -60
- package/dist/util/http/github.js.map +1 -1
- package/dist/util/http/gitlab.d.ts +7 -5
- package/dist/util/http/gitlab.js +58 -46
- package/dist/util/http/gitlab.js.map +1 -1
- package/dist/util/http/got.d.ts +9 -0
- package/dist/util/http/got.js +54 -0
- package/dist/util/http/got.js.map +1 -0
- package/dist/util/http/host-rules.d.ts +2 -1
- package/dist/util/http/host-rules.js +5 -4
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/http/http.d.ts +93 -0
- package/dist/util/http/http.js +346 -0
- package/dist/util/http/http.js.map +1 -0
- package/dist/util/http/index.d.ts +6 -74
- package/dist/util/http/index.js +5 -359
- package/dist/util/http/index.js.map +1 -1
- package/dist/util/http/legacy.js +4 -1
- package/dist/util/http/legacy.js.map +1 -1
- package/dist/util/http/types.d.ts +9 -16
- package/dist/util/http/types.js.map +1 -1
- package/dist/util/stats.d.ts +10 -0
- package/dist/util/stats.js +45 -1
- package/dist/util/stats.js.map +1 -1
- package/dist/util/string.d.ts +15 -0
- package/dist/util/string.js +75 -0
- package/dist/util/string.js.map +1 -1
- package/dist/util/toml.d.ts +1 -0
- package/dist/util/toml.js +6 -0
- package/dist/util/toml.js.map +1 -1
- package/dist/util/url.js +3 -8
- package/dist/util/url.js.map +1 -1
- package/dist/util/yaml.js +2 -6
- package/dist/util/yaml.js.map +1 -1
- package/dist/workers/global/config/parse/env.js +3 -2
- package/dist/workers/global/config/parse/env.js.map +1 -1
- package/dist/workers/global/config/parse/file.js +19 -9
- package/dist/workers/global/config/parse/file.js.map +1 -1
- package/dist/workers/global/config/parse/host-rules-from-env.js +6 -2
- package/dist/workers/global/config/parse/host-rules-from-env.js.map +1 -1
- package/dist/workers/global/config/parse/index.js +5 -0
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/repository/cache.js +1 -2
- package/dist/workers/repository/cache.js.map +1 -1
- package/dist/workers/repository/config-migration/branch/migrated-data.js +2 -0
- package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
- package/dist/workers/repository/index.js +1 -0
- package/dist/workers/repository/index.js.map +1 -1
- package/dist/workers/repository/init/merge.js +6 -3
- package/dist/workers/repository/init/merge.js.map +1 -1
- package/dist/workers/repository/onboarding/pr/config-description.js +3 -1
- package/dist/workers/repository/onboarding/pr/config-description.js.map +1 -1
- package/dist/workers/repository/process/extract-update.js +0 -1
- package/dist/workers/repository/process/extract-update.js.map +1 -1
- package/dist/workers/repository/process/fingerprint-fields.js +0 -1
- package/dist/workers/repository/process/fingerprint-fields.js.map +1 -1
- package/dist/workers/repository/process/libyear.js +2 -2
- package/dist/workers/repository/process/libyear.js.map +1 -1
- package/dist/workers/repository/process/lookup/index.js +13 -4
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/vulnerabilities.js +1 -1
- package/dist/workers/repository/process/vulnerabilities.js.map +1 -1
- package/dist/workers/repository/process/write.js +1 -8
- package/dist/workers/repository/process/write.js.map +1 -1
- package/dist/workers/repository/reconfigure/validate.js +1 -0
- package/dist/workers/repository/reconfigure/validate.js.map +1 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +10 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/github/index.js +6 -3
- package/dist/workers/repository/update/pr/changelog/github/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/gitlab/index.js +1 -1
- package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/source.js +1 -0
- package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
- package/dist/workers/repository/updates/flatten.js +8 -4
- package/dist/workers/repository/updates/flatten.js.map +1 -1
- package/dist/workers/repository/updates/generate.js +1 -2
- package/dist/workers/repository/updates/generate.js.map +1 -1
- package/dist/workers/types.d.ts +1 -4
- package/dist/workers/types.js.map +1 -1
- package/package.json +69 -72
- package/renovate-schema.json +15 -1
- package/dist/modules/manager/github-actions/types.d.ts +0 -30
- package/dist/modules/manager/github-actions/types.js +0 -3
- package/dist/modules/manager/github-actions/types.js.map +0 -1
- package/dist/modules/manager/gitlabci/common.d.ts +0 -6
- package/dist/modules/manager/gitlabci/common.js +0 -30
- package/dist/modules/manager/gitlabci/common.js.map +0 -1
- package/dist/modules/manager/gitlabci/types.d.ts +0 -35
- package/dist/modules/manager/gitlabci/types.js +0 -3
- package/dist/modules/manager/gitlabci/types.js.map +0 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { SpawnOptions as ChildProcessSpawnOptions } from 'node:child_process';
|
2
|
-
import type { UserEnv } from '../../config/types';
|
3
2
|
export interface ToolConstraint {
|
4
3
|
toolName: string;
|
5
4
|
constraint?: string | null;
|
@@ -42,7 +41,6 @@ export interface ExecOptions {
|
|
42
41
|
cwd?: string;
|
43
42
|
cwdFile?: string;
|
44
43
|
env?: Opt<ExtraEnv>;
|
45
|
-
userConfiguredEnv?: UserEnv;
|
46
44
|
extraEnv?: Opt<ExtraEnv>;
|
47
45
|
docker?: Opt<DockerOptions>;
|
48
46
|
toolConstraints?: Opt<ToolConstraint[]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/util/exec/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpawnOptions as ChildProcessSpawnOptions } from 'node:child_process';\
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/util/exec/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpawnOptions as ChildProcessSpawnOptions } from 'node:child_process';\n\nexport interface ToolConstraint {\n toolName: string;\n constraint?: string | null;\n}\n\nexport interface ToolConfig {\n datasource: string;\n extractVersion?: string;\n packageName: string;\n hash?: boolean;\n versioning: string;\n}\n\nexport type Opt<T> = T | null | undefined;\n\nexport type VolumesPair = [string, string];\nexport type VolumeOption = Opt<string | VolumesPair>;\n\nexport interface DockerOptions {\n volumes?: Opt<VolumeOption[]>;\n envVars?: Opt<Opt<string>[]>;\n cwd?: Opt<string>;\n}\n\nexport type DataListener = (chunk: any) => void;\nexport interface OutputListeners {\n stdout?: DataListener[];\n stderr?: DataListener[];\n}\n\nexport interface RawExecOptions extends ChildProcessSpawnOptions {\n // TODO: to be removed in #16655\n /**\n * @deprecated renovate uses utf8, encoding property is ignored.\n */\n encoding: string;\n maxBuffer?: number | undefined;\n cwd?: string;\n outputListeners?: OutputListeners;\n}\n\nexport interface ExecResult {\n stdout: string;\n stderr: string;\n}\n\nexport type ExtraEnv<T = unknown> = Record<string, T>;\n\nexport interface ExecOptions {\n cwd?: string;\n cwdFile?: string;\n env?: Opt<ExtraEnv>;\n extraEnv?: Opt<ExtraEnv>;\n docker?: Opt<DockerOptions>;\n toolConstraints?: Opt<ToolConstraint[]>;\n preCommands?: Opt<string[]>;\n ignoreStdout?: boolean;\n // Following are pass-through to child process\n maxBuffer?: number | undefined;\n timeout?: number | undefined;\n}\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { ExecOptions } from './types';
|
2
|
-
export declare function getChildEnv({ extraEnv,
|
2
|
+
export declare function getChildEnv({ extraEnv, env: forcedEnv, }: ExecOptions): Record<string, string>;
|
package/dist/util/exec/utils.js
CHANGED
@@ -3,17 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getChildEnv = getChildEnv;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
6
|
-
const
|
7
|
-
const
|
8
|
-
function getChildEnv({ extraEnv,
|
9
|
-
const globalConfigEnv =
|
6
|
+
const env_1 = require("../env");
|
7
|
+
const env_2 = require("./env");
|
8
|
+
function getChildEnv({ extraEnv, env: forcedEnv = {}, }) {
|
9
|
+
const globalConfigEnv = (0, env_1.getCustomEnv)();
|
10
|
+
const userConfiguredEnv = (0, env_1.getUserEnv)();
|
10
11
|
const inheritedKeys = [];
|
11
12
|
for (const [key, val] of Object.entries(extraEnv ?? {})) {
|
12
13
|
if (is_1.default.string(val)) {
|
13
14
|
inheritedKeys.push(key);
|
14
15
|
}
|
15
16
|
}
|
16
|
-
const parentEnv = (0,
|
17
|
+
const parentEnv = (0, env_2.getChildProcessEnv)(inheritedKeys);
|
17
18
|
const combinedEnv = {
|
18
19
|
...extraEnv,
|
19
20
|
...parentEnv,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../lib/util/exec/utils.ts"],"names":[],"mappings":";;AAKA,kCA+BC;;AApCD,kEAAkC;AAClC,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../lib/util/exec/utils.ts"],"names":[],"mappings":";;AAKA,kCA+BC;;AApCD,kEAAkC;AAClC,gCAAkD;AAClD,+BAA2C;AAG3C,SAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EAAE,SAAS,GAAG,EAAE,GACP;IACZ,MAAM,eAAe,GAAG,IAAA,kBAAY,GAAE,CAAC;IACvC,MAAM,iBAAiB,GAAG,IAAA,gBAAU,GAAE,CAAC;IAEvC,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,CAAC;QACxD,IAAI,YAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAG,IAAA,wBAAkB,EAAC,aAAa,CAAC,CAAC;IACpD,MAAM,WAAW,GAAG;QAClB,GAAG,QAAQ;QACX,GAAG,SAAS;QACZ,GAAG,eAAe;QAClB,GAAG,iBAAiB;QACpB,GAAG,SAAS;KACb,CAAC;IAEF,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QACrD,IAAI,YAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { getCustomEnv, getUserEnv } from '../env';\nimport { getChildProcessEnv } from './env';\nimport type { ExecOptions } from './types';\n\nexport function getChildEnv({\n extraEnv,\n env: forcedEnv = {},\n}: ExecOptions): Record<string, string> {\n const globalConfigEnv = getCustomEnv();\n const userConfiguredEnv = getUserEnv();\n\n const inheritedKeys: string[] = [];\n for (const [key, val] of Object.entries(extraEnv ?? {})) {\n if (is.string(val)) {\n inheritedKeys.push(key);\n }\n }\n\n const parentEnv = getChildProcessEnv(inheritedKeys);\n const combinedEnv = {\n ...extraEnv,\n ...parentEnv,\n ...globalConfigEnv,\n ...userConfiguredEnv,\n ...forcedEnv,\n };\n\n const result: Record<string, string> = {};\n for (const [key, val] of Object.entries(combinedEnv)) {\n if (is.string(val)) {\n result[key] = `${val}`;\n }\n }\n\n return result;\n}\n"]}
|
package/dist/util/git/author.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../../lib/util/git/author.ts"],"names":[],"mappings":";;AAKA,wCAwCC;;AA7CD,8EAAoC;AACpC,yCAAsC;AACtC,oCAAiC;AAGjC,SAAgB,cAAc,CAAC,KAAa;IAC1C,IAAI,MAAM,GAAqB,IAAI,CAAC;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,yBAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACtC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,IAAI,aAAiC,CAAC;QACtC,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAC7B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,2CAA2C;YAC3C,aAAa,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,mCAAmC;YACnC,aAAa,GAAG,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAChE,gBAAgB,GAAG,IAAI,CAAC;QAC1B,CAAC;QACD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,yBAAK,CAAC,eAAe,CAAC,aAAa,CAAwB,CAAC;QAC3E,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YACpB,MAAM,GAAG;gBACP,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,KAAK,CAAC,EAAE,EAAE,CAAC;gBACpD,OAAO,EAAE,MAAM,CAAC,OAAO;aACxB,CAAC;YACF,IAAI,gBAAgB,EAAE,CAAC;gBACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../../lib/util/git/author.ts"],"names":[],"mappings":";;AAKA,wCAwCC;;AA7CD,8EAAoC;AACpC,yCAAsC;AACtC,oCAAiC;AAGjC,SAAgB,cAAc,CAAC,KAAa;IAC1C,IAAI,MAAM,GAAqB,IAAI,CAAC;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,yBAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACtC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,IAAI,aAAiC,CAAC;QACtC,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAC7B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,2CAA2C;YAC3C,aAAa,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,mCAAmC;YACnC,aAAa,GAAG,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAChE,gBAAgB,GAAG,IAAI,CAAC;QAC1B,CAAC;QACD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,yBAAK,CAAC,eAAe,CAAC,aAAa,CAAwB,CAAC;QAC3E,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YACpB,MAAM,GAAG;gBACP,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,KAAK,CAAC,EAAE,EAAE,CAAC;gBACpD,OAAO,EAAE,MAAM,CAAC,OAAO;aACxB,CAAC;YACF,IAAI,gBAAgB,EAAE,CAAC;gBACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,iCAAiC,CAAC,CAAC;IAC3D,CAAC;IACD,UAAU;IACV,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import addrs from 'email-addresses';\nimport { logger } from '../../logger';\nimport { regEx } from '../regex';\nimport type { GitAuthor } from './types';\n\nexport function parseGitAuthor(input: string): GitAuthor | null {\n let result: GitAuthor | null = null;\n if (!input) {\n return null;\n }\n try {\n result = addrs.parseOneAddress(input);\n if (result) {\n return result;\n }\n let massagedInput: string | undefined;\n let massagedBotEmail = false;\n if (input.includes('<') && input.includes('>')) {\n // try wrapping the name part in quotations\n massagedInput = '\"' + input.replace(regEx(/(\\s?<)/), '\"$1');\n }\n if (input.includes('[bot]@')) {\n // invalid github app/bot addresses\n massagedInput = (massagedInput ?? input).replace('[bot]@', '@');\n massagedBotEmail = true;\n }\n if (!massagedInput) {\n return null;\n }\n const parsed = addrs.parseOneAddress(massagedInput) as addrs.ParsedMailbox;\n if (parsed?.address) {\n result = {\n name: parsed.name ?? input.replace(regEx(/@.*/), ''),\n address: parsed.address,\n };\n if (massagedBotEmail) {\n result.address = result.address?.replace('@', '[bot]@');\n }\n return result;\n }\n } catch (err) {\n logger.debug({ err }, 'Unknown error parsing gitAuthor');\n }\n // give up\n return null;\n}\n"]}
|
package/dist/util/git/config.js
CHANGED
@@ -8,7 +8,6 @@ const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
|
8
8
|
const global_1 = require("../../config/global");
|
9
9
|
let noVerify = ['push', 'commit'];
|
10
10
|
function setNoVerify(value) {
|
11
|
-
// istanbul ignore if
|
12
11
|
if (!is_1.default.array(value, is_1.default.string)) {
|
13
12
|
throw new Error('config error: gitNoVerify should be an array of strings');
|
14
13
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../lib/util/git/config.ts"],"names":[],"mappings":";;AAOA,
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../lib/util/git/config.ts"],"names":[],"mappings":";;AAOA,kCAKC;AAED,kCAEC;AAED,0CAcC;;AAhCD,kEAAkC;AAElC,gDAAmD;AAGnD,IAAI,QAAQ,GAAwB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEvD,SAAgB,WAAW,CAAC,KAA0B;IACpD,IAAI,CAAC,YAAE,CAAC,KAAK,CAAC,KAAK,EAAE,YAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,QAAQ,GAAG,KAAK,CAAC;AACnB,CAAC;AAED,SAAgB,WAAW;IACzB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,eAAe;IAC7B,MAAM,MAAM,GAA8B;QACxC,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,KAAK;SACd;QACD,MAAM,EAAE,CAAC,sBAAsB,CAAC;KACjC,CAAC;IACF,8CAA8C;IAC9C,MAAM,UAAU,GAAG,qBAAY,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAClD,IAAI,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QAC5C,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IACzC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport type { SimpleGitOptions } from 'simple-git';\nimport { GlobalConfig } from '../../config/global';\nimport type { GitNoVerifyOption } from './types';\n\nlet noVerify: GitNoVerifyOption[] = ['push', 'commit'];\n\nexport function setNoVerify(value: GitNoVerifyOption[]): void {\n if (!is.array(value, is.string)) {\n throw new Error('config error: gitNoVerify should be an array of strings');\n }\n noVerify = value;\n}\n\nexport function getNoVerify(): GitNoVerifyOption[] {\n return noVerify;\n}\n\nexport function simpleGitConfig(): Partial<SimpleGitOptions> {\n const config: Partial<SimpleGitOptions> = {\n completion: {\n onClose: true,\n onExit: false,\n },\n config: ['core.quotePath=false'],\n };\n // https://github.com/steveukx/git-js/pull/591\n const gitTimeout = GlobalConfig.get('gitTimeout');\n if (is.number(gitTimeout) && gitTimeout > 0) {\n config.timeout = { block: gitTimeout };\n }\n return config;\n}\n"]}
|
package/dist/util/git/error.js
CHANGED
@@ -6,7 +6,6 @@ exports.bulkChangesDisallowed = bulkChangesDisallowed;
|
|
6
6
|
const error_messages_1 = require("../../constants/error-messages");
|
7
7
|
const logger_1 = require("../../logger");
|
8
8
|
const external_host_error_1 = require("../../types/errors/external-host-error");
|
9
|
-
// istanbul ignore next
|
10
9
|
function checkForPlatformFailure(err) {
|
11
10
|
if (process.env.NODE_ENV === 'test') {
|
12
11
|
return null;
|
@@ -32,6 +31,7 @@ function checkForPlatformFailure(err) {
|
|
32
31
|
logger_1.logger.debug({ err }, 'Converting git error to ExternalHostError');
|
33
32
|
return new external_host_error_1.ExternalHostError(err, 'git');
|
34
33
|
}
|
34
|
+
/* v8 ignore start -- TODO: add test */
|
35
35
|
}
|
36
36
|
const configErrorStrings = [
|
37
37
|
{
|
@@ -66,7 +66,8 @@ function checkForPlatformFailure(err) {
|
|
66
66
|
}
|
67
67
|
return null;
|
68
68
|
}
|
69
|
-
|
69
|
+
/* v8 ignore stop */
|
70
|
+
/* v8 ignore start -- TODO: add tests */
|
70
71
|
function handleCommitError(err, branchName, files) {
|
71
72
|
checkForPlatformFailure(err);
|
72
73
|
if (err.message.includes(`'refs/heads/renovate' exists`)) {
|
@@ -117,6 +118,7 @@ function handleCommitError(err, branchName, files) {
|
|
117
118
|
// We don't know why this happened, so this will cause bubble up to a branch error
|
118
119
|
throw err;
|
119
120
|
}
|
121
|
+
/* v8 ignore stop */
|
120
122
|
function bulkChangesDisallowed(err) {
|
121
123
|
return err.message.includes('update more than');
|
122
124
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../lib/util/git/error.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../lib/util/git/error.ts"],"names":[],"mappings":"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","sourcesContent":["import { CONFIG_VALIDATION } from '../../constants/error-messages';\nimport { logger } from '../../logger';\nimport { ExternalHostError } from '../../types/errors/external-host-error';\nimport type { FileChange } from './types';\n\nexport function checkForPlatformFailure(err: Error): Error | null {\n if (process.env.NODE_ENV === 'test') {\n return null;\n }\n const externalHostFailureStrings = [\n 'remote: Invalid username or password',\n 'gnutls_handshake() failed',\n 'The requested URL returned error: 403',\n 'The requested URL returned error: 5',\n 'The remote end hung up unexpectedly',\n 'access denied or repository not exported',\n 'Could not write new index file',\n 'Failed to connect to',\n 'Connection timed out',\n 'malformed object name',\n 'Could not resolve host',\n 'early EOF',\n 'fatal: bad config', // .gitmodules problem\n 'expected flush after ref listing',\n ];\n for (const errorStr of externalHostFailureStrings) {\n if (err.message.includes(errorStr)) {\n logger.debug({ err }, 'Converting git error to ExternalHostError');\n return new ExternalHostError(err, 'git');\n }\n /* v8 ignore start -- TODO: add test */\n }\n\n const configErrorStrings = [\n {\n error: 'GitLab: Branch name does not follow the pattern',\n message:\n \"Cannot push because branch name does not follow project's push rules\",\n },\n {\n error: 'GitLab: Commit message does not follow the pattern',\n message:\n \"Cannot push because commit message does not follow project's push rules\",\n },\n {\n error: ' is not a member of team',\n message:\n 'The `Restrict commits to existing GitLab users` rule is blocking Renovate push. Check the Renovate `gitAuthor` setting',\n },\n {\n error: 'TF401027:',\n message:\n 'You need the Git `GenericContribute` permission to perform this action',\n },\n {\n error: 'matches more than one',\n message:\n \"Renovate cannot push branches if there are tags with names the same as Renovate's branches. Please remove conflicting tag names or change Renovate's branchPrefix to avoid conflicts.\",\n },\n ];\n for (const { error, message } of configErrorStrings) {\n if (err.message.includes(error)) {\n logger.debug({ err }, 'Converting git error to CONFIG_VALIDATION error');\n const res = new Error(CONFIG_VALIDATION);\n res.validationError = message;\n res.validationMessage = `\\`${err.message.replaceAll('`', \"'\")}\\``;\n return res;\n }\n }\n\n return null;\n}\n/* v8 ignore stop */\n\n/* v8 ignore start -- TODO: add tests */\nexport function handleCommitError(\n err: Error,\n branchName: string,\n files?: FileChange[],\n): null {\n checkForPlatformFailure(err);\n if (err.message.includes(`'refs/heads/renovate' exists`)) {\n const error = new Error(CONFIG_VALIDATION);\n error.validationSource = 'None';\n error.validationError = 'An existing branch is blocking Renovate';\n error.validationMessage = `Renovate needs to create the branch \\`${branchName}\\` but is blocked from doing so because of an existing branch called \\`renovate\\`. Please remove it so that Renovate can proceed.`;\n throw error;\n }\n if (\n err.message.includes(\n 'refusing to allow a GitHub App to create or update workflow',\n )\n ) {\n logger.warn(\n 'App has not been granted permissions to update Workflows - aborting branch.',\n );\n return null;\n }\n if (\n (err.message.includes('remote rejected') || err.message.includes('403')) &&\n files?.some((file) => file.path?.startsWith('.github/workflows/'))\n ) {\n logger.debug({ err }, 'commitFiles error');\n logger.info('Workflows update rejection - aborting branch.');\n return null;\n }\n if (err.message.includes('protected branch hook declined')) {\n const error = new Error(CONFIG_VALIDATION);\n error.validationSource = branchName;\n error.validationError = 'Renovate branch is protected';\n error.validationMessage = `Renovate cannot push to its branch because branch protection has been enabled.`;\n throw error;\n }\n if (err.message.includes('can only push your own commits')) {\n const error = new Error(CONFIG_VALIDATION);\n error.validationSource = branchName;\n error.validationError = 'Bitbucket committer error';\n error.validationMessage = `Renovate has experienced the following error when attempting to push its branch to the server: \\`${err.message.replaceAll(\n '`',\n \"'\",\n )}\\``;\n throw error;\n }\n if (err.message.includes('remote: error: cannot lock ref')) {\n logger.error({ err }, 'Error committing files.');\n return null;\n }\n if (\n err.message.includes('denying non-fast-forward') ||\n err.message.includes('GH003: Sorry, force-pushing')\n ) {\n logger.debug({ err }, 'Permission denied to update branch');\n const error = new Error(CONFIG_VALIDATION);\n error.validationSource = branchName;\n error.validationError = 'Force push denied';\n error.validationMessage = `Renovate is unable to update branch(es) due to force pushes being disallowed.`;\n throw error;\n }\n logger.debug({ err }, 'Unknown error committing files');\n // We don't know why this happened, so this will cause bubble up to a branch error\n throw err;\n}\n/* v8 ignore stop */\n\nexport function bulkChangesDisallowed(err: Error): boolean {\n return err.message.includes('update more than');\n}\n"]}
|
package/dist/util/git/index.js
CHANGED
@@ -119,7 +119,7 @@ async function getDefaultBranch(git) {
|
|
119
119
|
// see https://stackoverflow.com/a/62352647/3005034
|
120
120
|
try {
|
121
121
|
let res = await git.raw(['rev-parse', '--abbrev-ref', 'origin/HEAD']);
|
122
|
-
|
122
|
+
/* v8 ignore start -- TODO: add test */
|
123
123
|
if (!res) {
|
124
124
|
logger_1.logger.debug('Could not determine default branch using git rev-parse');
|
125
125
|
const headPrefix = 'HEAD branch: ';
|
@@ -129,9 +129,11 @@ async function getDefaultBranch(git) {
|
|
129
129
|
.find((line) => line.startsWith(headPrefix))
|
130
130
|
.replace(headPrefix, '');
|
131
131
|
}
|
132
|
+
/* v8 ignore stop */
|
132
133
|
return res.replace('origin/', '').trim();
|
134
|
+
/* v8 ignore start -- TODO: add test */
|
133
135
|
}
|
134
|
-
catch (err)
|
136
|
+
catch (err) {
|
135
137
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
136
138
|
if (errChecked) {
|
137
139
|
throw errChecked;
|
@@ -139,13 +141,13 @@ async function getDefaultBranch(git) {
|
|
139
141
|
if (err.message.startsWith('fatal: ref refs/remotes/origin/HEAD is not a symbolic ref')) {
|
140
142
|
throw new Error(error_messages_1.REPOSITORY_EMPTY);
|
141
143
|
}
|
142
|
-
// istanbul ignore if
|
143
144
|
if (err.message.includes("fatal: ambiguous argument 'origin/HEAD'")) {
|
144
145
|
logger_1.logger.warn({ err }, 'Error getting default branch');
|
145
146
|
throw new Error(error_messages_1.TEMPORARY_ERROR);
|
146
147
|
}
|
147
148
|
throw err;
|
148
149
|
}
|
150
|
+
/* v8 ignore stop */
|
149
151
|
}
|
150
152
|
let config = {};
|
151
153
|
// TODO: can be undefined
|
@@ -159,18 +161,19 @@ async function validateGitVersion() {
|
|
159
161
|
const globalGit = (0, simple_git_1.simpleGit)();
|
160
162
|
try {
|
161
163
|
const { major, minor, patch, installed } = await globalGit.version();
|
162
|
-
|
164
|
+
/* v8 ignore next 4 -- TODO: add test */
|
163
165
|
if (!installed) {
|
164
166
|
logger_1.logger.error('Git not installed');
|
165
167
|
return false;
|
166
168
|
}
|
167
169
|
version = `${major}.${minor}.${patch}`;
|
170
|
+
/* v8 ignore next 4 */
|
168
171
|
}
|
169
|
-
catch (err)
|
172
|
+
catch (err) {
|
170
173
|
logger_1.logger.error({ err }, 'Error fetching git version');
|
171
174
|
return false;
|
172
175
|
}
|
173
|
-
|
176
|
+
/* v8 ignore next 7 -- TODO: add test */
|
174
177
|
if (!(version && semver_1.default.gte(version, exports.GIT_MINIMUM_VERSION))) {
|
175
178
|
logger_1.logger.error({ detectedVersion: version, minimumVersion: exports.GIT_MINIMUM_VERSION }, 'Git version needs upgrading');
|
176
179
|
return false;
|
@@ -198,8 +201,9 @@ async function fetchBranchCommits() {
|
|
198
201
|
sha;
|
199
202
|
});
|
200
203
|
logger_1.logger.trace({ branchCommits: config.branchCommits }, 'branch commits');
|
204
|
+
/* v8 ignore next 11 -- TODO: add test */
|
201
205
|
}
|
202
|
-
catch (err)
|
206
|
+
catch (err) {
|
203
207
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
204
208
|
if (errChecked) {
|
205
209
|
throw errChecked;
|
@@ -235,7 +239,7 @@ async function resetToBranch(branchName) {
|
|
235
239
|
await git.raw(['reset', '--hard', 'origin/' + branchName]);
|
236
240
|
await git.raw(['clean', '-fd']);
|
237
241
|
}
|
238
|
-
|
242
|
+
/* v8 ignore next 4 -- TODO: add test */
|
239
243
|
async function resetToCommit(commit) {
|
240
244
|
logger_1.logger.debug(`resetToCommit(${commit})`);
|
241
245
|
await git.raw(['reset', '--hard', commit]);
|
@@ -268,7 +272,7 @@ function setGitAuthor(gitAuthor) {
|
|
268
272
|
}
|
269
273
|
async function writeGitAuthor() {
|
270
274
|
const { gitAuthorName, gitAuthorEmail, writeGitDone } = config;
|
271
|
-
|
275
|
+
/* v8 ignore next 3 -- TODO: add test */
|
272
276
|
if (writeGitDone) {
|
273
277
|
return;
|
274
278
|
}
|
@@ -282,8 +286,9 @@ async function writeGitAuthor() {
|
|
282
286
|
logger_1.logger.debug(`Setting git author email: ${gitAuthorEmail}`);
|
283
287
|
await git.addConfig('user.email', gitAuthorEmail);
|
284
288
|
}
|
289
|
+
/* v8 ignore next 11 -- TODO: add test */
|
285
290
|
}
|
286
|
-
catch (err)
|
291
|
+
catch (err) {
|
287
292
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
288
293
|
if (errChecked) {
|
289
294
|
throw errChecked;
|
@@ -308,8 +313,9 @@ async function getSubmodules() {
|
|
308
313
|
.trim()
|
309
314
|
.split((0, regex_1.regEx)(/[\n\s]/))
|
310
315
|
.filter((_e, i) => i % 2);
|
316
|
+
/* v8 ignore next 4 -- TODO: add test */
|
311
317
|
}
|
312
|
-
catch (err)
|
318
|
+
catch (err) {
|
313
319
|
logger_1.logger.warn({ err }, 'Error getting submodules');
|
314
320
|
return [];
|
315
321
|
}
|
@@ -340,13 +346,13 @@ function isCloned() {
|
|
340
346
|
}
|
341
347
|
async function syncGit() {
|
342
348
|
if (gitInitialized) {
|
343
|
-
|
349
|
+
/* v8 ignore next 3 -- TODO: add test */
|
344
350
|
if (process.env.RENOVATE_X_CLEAR_HOOKS) {
|
345
351
|
await git.raw(['config', 'core.hooksPath', '/dev/null']);
|
346
352
|
}
|
347
353
|
return;
|
348
354
|
}
|
349
|
-
|
355
|
+
/* v8 ignore next 3 -- failsafe TODO: add test */
|
350
356
|
if (global_1.GlobalConfig.get('platform') === 'local') {
|
351
357
|
throw new Error('Cannot sync git when platform=local');
|
352
358
|
}
|
@@ -370,8 +376,9 @@ async function syncGit() {
|
|
370
376
|
const durationMs = Math.round(Date.now() - fetchStart);
|
371
377
|
logger_1.logger.info({ durationMs }, 'git fetch completed');
|
372
378
|
clone = false;
|
379
|
+
/* v8 ignore next 6 -- TODO: add test */
|
373
380
|
}
|
374
|
-
catch (err)
|
381
|
+
catch (err) {
|
375
382
|
if (err.message === error_messages_1.REPOSITORY_EMPTY) {
|
376
383
|
throw err;
|
377
384
|
}
|
@@ -402,8 +409,9 @@ async function syncGit() {
|
|
402
409
|
await git.clone(config.url, '.', opts);
|
403
410
|
};
|
404
411
|
await gitRetry(() => emptyDirAndClone());
|
412
|
+
/* v8 ignore next 10 -- TODO: add test */
|
405
413
|
}
|
406
|
-
catch (err)
|
414
|
+
catch (err) {
|
407
415
|
logger_1.logger.debug({ err }, 'git clone error');
|
408
416
|
if (err.message?.includes('No space left on device')) {
|
409
417
|
throw new Error(error_messages_1.SYSTEM_INSUFFICIENT_DISK_SPACE);
|
@@ -418,8 +426,9 @@ async function syncGit() {
|
|
418
426
|
}
|
419
427
|
try {
|
420
428
|
config.currentBranchSha = (await git.raw(['rev-parse', 'HEAD'])).trim();
|
429
|
+
/* v8 ignore next 6 -- TODO: add test */
|
421
430
|
}
|
422
|
-
catch (err)
|
431
|
+
catch (err) {
|
423
432
|
if (err.message?.includes('fatal: not a git repository')) {
|
424
433
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
425
434
|
}
|
@@ -430,8 +439,9 @@ async function syncGit() {
|
|
430
439
|
try {
|
431
440
|
const latestCommit = (await git.log({ n: 1 })).latest;
|
432
441
|
logger_1.logger.debug({ latestCommit }, 'latest repository commit');
|
442
|
+
/* v8 ignore next 10 -- TODO: add test */
|
433
443
|
}
|
434
|
-
catch (err)
|
444
|
+
catch (err) {
|
435
445
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
436
446
|
if (errChecked) {
|
437
447
|
throw errChecked;
|
@@ -445,9 +455,9 @@ async function syncGit() {
|
|
445
455
|
config.currentBranch ??
|
446
456
|
config.defaultBranch ??
|
447
457
|
(await getDefaultBranch(git));
|
458
|
+
/* v8 ignore next -- TODO: add test */
|
448
459
|
delete (0, repository_1.getCache)()?.semanticCommits;
|
449
460
|
}
|
450
|
-
// istanbul ignore next
|
451
461
|
async function getRepoStatus(path) {
|
452
462
|
if (is_1.default.string(path)) {
|
453
463
|
const localDir = global_1.GlobalConfig.get('localDir');
|
@@ -478,8 +488,9 @@ async function getCommitMessages() {
|
|
478
488
|
format: { message: '%s' },
|
479
489
|
});
|
480
490
|
return res.all.map((commit) => commit.message);
|
491
|
+
/* v8 ignore next 3 -- TODO: add test */
|
481
492
|
}
|
482
|
-
catch
|
493
|
+
catch {
|
483
494
|
return [];
|
484
495
|
}
|
485
496
|
}
|
@@ -498,8 +509,9 @@ async function checkoutBranch(branchName) {
|
|
498
509
|
}
|
499
510
|
await git.reset(simple_git_1.ResetMode.HARD);
|
500
511
|
return config.currentBranchSha;
|
512
|
+
/* v8 ignore next 11 -- TODO: add test */
|
501
513
|
}
|
502
|
-
catch (err)
|
514
|
+
catch (err) {
|
503
515
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
504
516
|
if (errChecked) {
|
505
517
|
throw errChecked;
|
@@ -517,15 +529,16 @@ async function getFileList() {
|
|
517
529
|
let files;
|
518
530
|
try {
|
519
531
|
files = await git.raw(['ls-tree', '-r', branch]);
|
532
|
+
/* v8 ignore next 10 -- TODO: add test */
|
520
533
|
}
|
521
|
-
catch (err)
|
534
|
+
catch (err) {
|
522
535
|
if (err.message?.includes('fatal: Not a valid object name')) {
|
523
536
|
logger_1.logger.debug({ err }, 'Branch not found when checking branch list - aborting');
|
524
537
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
525
538
|
}
|
526
539
|
throw err;
|
527
540
|
}
|
528
|
-
|
541
|
+
/* v8 ignore next 3 -- TODO: add test */
|
529
542
|
if (!files) {
|
530
543
|
return [];
|
531
544
|
}
|
@@ -537,7 +550,7 @@ async function getFileList() {
|
|
537
550
|
.map((line) => line.split((0, regex_1.regEx)(/\t/)).pop());
|
538
551
|
}
|
539
552
|
function getBranchList() {
|
540
|
-
return Object.keys(config.branchCommits ??
|
553
|
+
return Object.keys(config.branchCommits ?? {});
|
541
554
|
}
|
542
555
|
async function isBranchBehindBase(branchName, baseBranch) {
|
543
556
|
const baseBranchSha = getBranchCommit(baseBranch);
|
@@ -555,8 +568,9 @@ async function isBranchBehindBase(branchName, baseBranch) {
|
|
555
568
|
logger_1.logger.debug({ baseBranch, branchName }, `branch.isBehindBase(): ${isBehind}`);
|
556
569
|
(0, behind_base_branch_cache_1.setCachedBehindBaseResult)(branchName, isBehind);
|
557
570
|
return isBehind;
|
571
|
+
/* v8 ignore next 7 -- TODO: add test */
|
558
572
|
}
|
559
|
-
catch (err)
|
573
|
+
catch (err) {
|
560
574
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
561
575
|
if (errChecked) {
|
562
576
|
throw errChecked;
|
@@ -590,8 +604,9 @@ async function isBranchModified(branchName, baseBranch) {
|
|
590
604
|
for (const commit of commits.all) {
|
591
605
|
committedAuthors.add(commit.author_email);
|
592
606
|
}
|
607
|
+
/* v8 ignore next 10 -- TODO: add test */
|
593
608
|
}
|
594
|
-
catch (err)
|
609
|
+
catch (err) {
|
595
610
|
if (err.message?.includes('fatal: bad revision')) {
|
596
611
|
logger_1.logger.debug({ err }, 'Remote branch not found when checking last commit author - aborting run');
|
597
612
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
@@ -662,7 +677,7 @@ async function isBranchConflicted(baseBranch, branch) {
|
|
662
677
|
}
|
663
678
|
catch (err) {
|
664
679
|
result = true;
|
665
|
-
|
680
|
+
/* v8 ignore next 6 -- TODO: add test */
|
666
681
|
if (!err?.git?.conflicts?.length) {
|
667
682
|
logger_1.logger.debug({ baseBranch, branch, err }, 'isBranchConflicted: unknown error');
|
668
683
|
}
|
@@ -673,8 +688,9 @@ async function isBranchConflicted(baseBranch, branch) {
|
|
673
688
|
if (origBranch !== baseBranch) {
|
674
689
|
await git.checkout(origBranch);
|
675
690
|
}
|
691
|
+
/* v8 ignore next 6 -- TODO: add test */
|
676
692
|
}
|
677
|
-
catch (err)
|
693
|
+
catch (err) {
|
678
694
|
logger_1.logger.debug({ baseBranch, branch, err }, 'isBranchConflicted: cleanup error');
|
679
695
|
}
|
680
696
|
}
|
@@ -692,21 +708,22 @@ async function deleteBranch(branchName) {
|
|
692
708
|
await gitRetry(() => git.raw(deleteCommand));
|
693
709
|
logger_1.logger.debug(`Deleted remote branch: ${branchName}`);
|
694
710
|
}
|
695
|
-
catch (err)
|
711
|
+
catch (err) {
|
696
712
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
713
|
+
/* v8 ignore next 3 -- TODO: add test */
|
697
714
|
if (errChecked) {
|
698
715
|
throw errChecked;
|
699
716
|
}
|
700
717
|
logger_1.logger.debug(`No remote branch to delete with name: ${branchName}`);
|
701
718
|
}
|
702
719
|
try {
|
720
|
+
/* v8 ignore next 2 -- TODO: add test (always throws) */
|
703
721
|
await deleteLocalBranch(branchName);
|
704
|
-
// istanbul ignore next
|
705
722
|
logger_1.logger.debug(`Deleted local branch: ${branchName}`);
|
706
723
|
}
|
707
724
|
catch (err) {
|
708
725
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
709
|
-
|
726
|
+
/* v8 ignore next 3 -- TODO: add test */
|
710
727
|
if (errChecked) {
|
711
728
|
throw errChecked;
|
712
729
|
}
|
@@ -777,7 +794,7 @@ async function getBranchLastCommitTime(branchName) {
|
|
777
794
|
}
|
778
795
|
catch (err) {
|
779
796
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
780
|
-
|
797
|
+
/* v8 ignore next 3 -- TODO: add test */
|
781
798
|
if (errChecked) {
|
782
799
|
throw errChecked;
|
783
800
|
}
|
@@ -789,8 +806,9 @@ async function getBranchFiles(branchName) {
|
|
789
806
|
try {
|
790
807
|
const diff = await gitRetry(() => git.diffSummary([`origin/${branchName}`, `origin/${branchName}^`]));
|
791
808
|
return diff.files.map((file) => file.file);
|
809
|
+
/* v8 ignore next 8 -- TODO: add test */
|
792
810
|
}
|
793
|
-
catch (err)
|
811
|
+
catch (err) {
|
794
812
|
logger_1.logger.warn({ err }, 'getBranchFiles error');
|
795
813
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
796
814
|
if (errChecked) {
|
@@ -809,7 +827,7 @@ async function getFile(filePath, branchName) {
|
|
809
827
|
}
|
810
828
|
catch (err) {
|
811
829
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
812
|
-
|
830
|
+
/* v8 ignore next 3 -- TODO: add test */
|
813
831
|
if (errChecked) {
|
814
832
|
throw errChecked;
|
815
833
|
}
|
@@ -871,8 +889,9 @@ async function prepareCommit({ branchName, files, message, force = false, }) {
|
|
871
889
|
try {
|
872
890
|
await git.rm([fileName]);
|
873
891
|
deletedFiles.push(fileName);
|
892
|
+
/* v8 ignore next 8 -- TODO: add test */
|
874
893
|
}
|
875
|
-
catch (err)
|
894
|
+
catch (err) {
|
876
895
|
const errChecked = (0, error_1.checkForPlatformFailure)(err);
|
877
896
|
if (errChecked) {
|
878
897
|
throw errChecked;
|
@@ -891,9 +910,9 @@ async function prepareCommit({ branchName, files, message, force = false, }) {
|
|
891
910
|
}
|
892
911
|
else {
|
893
912
|
let contents;
|
894
|
-
// istanbul ignore else
|
895
913
|
if (typeof file.contents === 'string') {
|
896
914
|
contents = Buffer.from(file.contents);
|
915
|
+
/* v8 ignore next 3 -- TODO: add test */
|
897
916
|
}
|
898
917
|
else {
|
899
918
|
contents = file.contents;
|
@@ -910,15 +929,16 @@ async function prepareCommit({ branchName, files, message, force = false, }) {
|
|
910
929
|
}
|
911
930
|
}
|
912
931
|
try {
|
913
|
-
|
932
|
+
/* v8 ignore next 2 -- TODO: add test */
|
914
933
|
const addParams = fileName === app_strings_1.configFileNames[0] ? ['-f', fileName] : fileName;
|
915
934
|
await git.add(addParams);
|
916
935
|
if (file.isExecutable) {
|
917
936
|
await git.raw(['update-index', '--chmod=+x', fileName]);
|
918
937
|
}
|
919
938
|
addedModifiedFiles.push(fileName);
|
939
|
+
/* v8 ignore next 11 -- TODO: add test */
|
920
940
|
}
|
921
|
-
catch (err)
|
941
|
+
catch (err) {
|
922
942
|
if (!err.message.includes('The following paths are ignored by one of your .gitignore files')) {
|
923
943
|
throw err;
|
924
944
|
}
|
@@ -956,8 +976,9 @@ async function prepareCommit({ branchName, files, message, force = false, }) {
|
|
956
976
|
}),
|
957
977
|
};
|
958
978
|
return result;
|
979
|
+
/* v8 ignore next 3 -- TODO: add test */
|
959
980
|
}
|
960
|
-
catch (err)
|
981
|
+
catch (err) {
|
961
982
|
return (0, error_1.handleCommitError)(err, branchName, files);
|
962
983
|
}
|
963
984
|
}
|
@@ -978,8 +999,9 @@ async function pushCommit({ sourceRef, targetRef, files, }) {
|
|
978
999
|
logger_1.logger.debug({ result: pushRes }, 'git push');
|
979
1000
|
(0, limits_1.incLimitedValue)('Commits');
|
980
1001
|
result = true;
|
1002
|
+
/* v8 ignore next 3 -- TODO: add test */
|
981
1003
|
}
|
982
|
-
catch (err)
|
1004
|
+
catch (err) {
|
983
1005
|
(0, error_1.handleCommitError)(err, sourceRef, files);
|
984
1006
|
}
|
985
1007
|
return result;
|
@@ -994,8 +1016,9 @@ async function fetchBranch(branchName) {
|
|
994
1016
|
config.branchCommits[branchName] = commit;
|
995
1017
|
config.branchIsModified[branchName] = false;
|
996
1018
|
return commit;
|
1019
|
+
/* v8 ignore next 3 -- TODO: add test */
|
997
1020
|
}
|
998
|
-
catch (err)
|
1021
|
+
catch (err) {
|
999
1022
|
return (0, error_1.handleCommitError)(err, branchName);
|
1000
1023
|
}
|
1001
1024
|
}
|
@@ -1016,8 +1039,9 @@ async function commitFiles(commitConfig) {
|
|
1016
1039
|
}
|
1017
1040
|
}
|
1018
1041
|
return null;
|
1042
|
+
/* v8 ignore next 6 -- TODO: add test */
|
1019
1043
|
}
|
1020
|
-
catch (err)
|
1044
|
+
catch (err) {
|
1021
1045
|
if (err.message.includes('[rejected] (stale info)')) {
|
1022
1046
|
throw new Error(error_messages_1.REPOSITORY_CHANGED);
|
1023
1047
|
}
|
@@ -1091,8 +1115,9 @@ async function clearRenovateRefs() {
|
|
1091
1115
|
.map((line) => line.replace((0, regex_1.regEx)(/[0-9a-f]+\s+/i), '').trim())
|
1092
1116
|
.filter((line) => line.startsWith('refs/renovate/branches/'));
|
1093
1117
|
renovateRefs.push(...refs);
|
1118
|
+
/* v8 ignore next 3 -- TODO: add test */
|
1094
1119
|
}
|
1095
|
-
catch (err)
|
1120
|
+
catch (err) {
|
1096
1121
|
logger_1.logger.warn({ err }, `Renovate refs cleanup error`);
|
1097
1122
|
}
|
1098
1123
|
if (renovateRefs.length) {
|
@@ -1101,18 +1126,19 @@ async function clearRenovateRefs() {
|
|
1101
1126
|
await git.push(pushOpts);
|
1102
1127
|
}
|
1103
1128
|
catch (err) {
|
1104
|
-
/* istanbul ignore else */
|
1105
1129
|
if ((0, error_1.bulkChangesDisallowed)(err)) {
|
1106
1130
|
for (const ref of renovateRefs) {
|
1107
1131
|
try {
|
1108
1132
|
const pushOpts = ['--delete', 'origin', ref];
|
1109
1133
|
await git.push(pushOpts);
|
1134
|
+
/* v8 ignore next 4 -- TODO: add test */
|
1110
1135
|
}
|
1111
|
-
catch (err)
|
1136
|
+
catch (err) {
|
1112
1137
|
logger_1.logger.debug({ err }, 'Error deleting "refs/renovate/branches/*"');
|
1113
1138
|
break;
|
1114
1139
|
}
|
1115
1140
|
}
|
1141
|
+
/* v8 ignore next 3 -- TODO: add test */
|
1116
1142
|
}
|
1117
1143
|
else {
|
1118
1144
|
logger_1.logger.warn({ err }, 'Error deleting "refs/renovate/branches/*"');
|
@@ -1147,8 +1173,9 @@ const treeShaRegex = (0, regex_1.regEx)(/tree\s+(?<treeSha>[0-9a-f]{40})\s*/);
|
|
1147
1173
|
*/
|
1148
1174
|
async function listCommitTree(commitSha) {
|
1149
1175
|
const commitOutput = await git.catFile(['-p', commitSha]);
|
1150
|
-
const { treeSha } =
|
1151
|
-
|
1176
|
+
const { treeSha } =
|
1177
|
+
/* v8 ignore next -- will never happen ? */
|
1178
|
+
treeShaRegex.exec(commitOutput)?.groups ?? {};
|
1152
1179
|
const contents = await git.catFile(['-p', treeSha]);
|
1153
1180
|
const lines = contents.split(regex_1.newlineRegex);
|
1154
1181
|
const result = [];
|