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

Print package manager version as part of regular debug logging of child process stdout #30824

Open
38 tasks
HonkingGoose opened this issue Aug 16, 2024 · 0 comments
Open
38 tasks
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)

Comments

@HonkingGoose
Copy link
Collaborator

HonkingGoose commented Aug 16, 2024

Describe the proposed change(s).

Summary

For each package manager listed below: print the version of the package manager as part of regular debug logging of child process stdout.

As an example: before Renovate uses npm it should print the output of npm --version into the logs.

As discussed in:

Todos:

  • Print for bun
  • Print for bundler
  • Print for cocoapods
  • Print for composer
  • Print for copier
  • Print for corepack
  • Print for dotnet
  • Print for erlang
  • Print for elixir
  • Print for flux
  • Print for gleam
  • Print for golang
  • Print for gradle
  • Print for hashin
  • Print for helm
  • Print for helmfile
  • Print for java
  • Print for java-maven (if Renovate uses it?)
  • Print for jb (jsonnet-bundler)
  • Print for kustomize
  • Print for maven
  • Print for nix
  • Print for node
  • Print for npm
  • Print for pdm
  • Print for php
  • Print for pip-tools
  • Print for pipenv
  • Print for pnpm
  • Print for poetry
  • Print for python
  • Print for ruby
  • Print for rust (Stand-alone command: cargo version, or with flag: cargo --version)
  • Print for yarn
  • Print for yarn-slim
  • Print for dart
  • Print for flutter
  • Print for vendir

Source for todos

Based on:

const allToolConfig: Record<string, ToolConfig> = {
bun: {
datasource: 'github-releases',
packageName: 'oven-sh/bun',
extractVersion: '^bun-v(?<version>.*)$',
versioning: npmVersioningId,
},
bundler: {
datasource: 'rubygems',
packageName: 'bundler',
versioning: rubyVersioningId,
},
cocoapods: {
datasource: 'rubygems',
packageName: 'cocoapods',
versioning: rubyVersioningId,
},
composer: {
datasource: 'github-releases',
packageName: 'composer/composer',
versioning: composerVersioningId,
},
copier: {
datasource: 'pypi',
packageName: 'copier',
versioning: pep440VersioningId,
},
corepack: {
datasource: 'npm',
packageName: 'corepack',
versioning: npmVersioningId,
},
dotnet: {
datasource: 'dotnet-version',
packageName: 'dotnet-sdk',
versioning: semverVersioningId,
},
erlang: {
datasource: 'github-releases',
packageName: 'containerbase/erlang-prebuild',
versioning: semverCoercedVersioningId,
},
elixir: {
datasource: 'github-releases',
packageName: 'elixir-lang/elixir',
versioning: semverVersioningId,
},
flux: {
datasource: 'github-releases',
packageName: 'fluxcd/flux2',
versioning: semverVersioningId,
},
gleam: {
datasource: 'github-releases',
packageName: 'gleam-lang/gleam',
versioning: semverVersioningId,
},
golang: {
datasource: 'golang-version',
packageName: 'golang',
versioning: npmVersioningId,
},
gradle: {
datasource: 'gradle-version',
packageName: 'gradle',
versioning: gradleVersioningId,
},
hashin: {
datasource: 'pypi',
packageName: 'hashin',
versioning: pep440VersioningId,
},
helm: {
datasource: 'github-releases',
packageName: 'helm/helm',
versioning: semverVersioningId,
},
helmfile: {
datasource: 'github-releases',
packageName: 'helmfile/helmfile',
versioning: semverVersioningId,
},
java: {
datasource: 'java-version',
packageName: 'java',
versioning: npmVersioningId,
},
/* not used in Renovate */
'java-maven': {
datasource: 'java-version',
packageName: 'java',
versioning: mavenVersioningId,
},
jb: {
datasource: 'github-releases',
packageName: 'jsonnet-bundler/jsonnet-bundler',
versioning: semverVersioningId,
},
kustomize: {
datasource: 'github-releases',
packageName: 'kubernetes-sigs/kustomize',
extractVersion: '^kustomize/v(?<version>.*)$',
versioning: semverVersioningId,
},
maven: {
datasource: 'maven',
packageName: 'org.apache.maven:maven',
versioning: mavenVersioningId,
},
nix: {
datasource: 'github-tags',
packageName: 'NixOS/nix',
versioning: semverVersioningId,
},
node: {
datasource: 'node-version',
packageName: 'node',
versioning: nodeVersioningId,
},
npm: {
datasource: 'npm',
packageName: 'npm',
hash: true,
versioning: npmVersioningId,
},
pdm: {
datasource: 'github-releases',
packageName: 'pdm-project/pdm',
versioning: semverVersioningId,
},
php: {
datasource: 'github-releases',
packageName: 'containerbase/php-prebuild',
versioning: composerVersioningId,
},
'pip-tools': {
datasource: 'pypi',
packageName: 'pip-tools',
versioning: pep440VersioningId,
},
pipenv: {
datasource: 'pypi',
packageName: 'pipenv',
versioning: pep440VersioningId,
},
pnpm: {
datasource: 'npm',
packageName: 'pnpm',
versioning: npmVersioningId,
},
poetry: {
datasource: 'pypi',
packageName: 'poetry',
versioning: pep440VersioningId,
},
python: {
datasource: 'github-releases',
packageName: 'containerbase/python-prebuild',
versioning: pythonVersioningId,
},
ruby: {
datasource: 'github-releases',
packageName: 'containerbase/ruby-prebuild',
versioning: rubyVersioningId,
},
rust: {
datasource: 'docker',
packageName: 'rust',
versioning: semverVersioningId,
},
yarn: {
datasource: 'npm',
packageName: 'yarn',
versioning: npmVersioningId,
},
'yarn-slim': {
datasource: 'npm',
packageName: 'yarn',
versioning: npmVersioningId,
},
dart: {
datasource: 'dart-version',
packageName: 'dart',
versioning: npmVersioningId,
},
flutter: {
datasource: 'flutter-version',
packageName: 'flutter',
versioning: npmVersioningId,
},
vendir: {
datasource: 'github-releases',
packageName: 'carvel-dev/vendir',
versioning: semverVersioningId,
},
};

@HonkingGoose HonkingGoose added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:docs Documentation type:feature Feature (new functionality) and removed type:docs Documentation labels Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)
Projects
None yet
Development

No branches or pull requests

1 participant