Git Product home page Git Product logo

renovate-config-asdf's Introduction

renovate-config-asdf

Build Status - Official Validator Build Status - Regex Build Status - Build Tools

Overview

Renovate sharable config for .tool-versions (asdf).

Since renovate version 34.25.0, official asdf manager imported most plugins of this repository.
And it merged extended hugo releases in following 34.28.0. So you don't need to depend this config now!

The following sections are historical. You can leave here.
However, I'm using this repository to check the correctness of the regex before sending it upstream.

Usage

In someday, I might add some definitions for my personal use again. Then they should be used as below.

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "github>kachick/renovate-config-asdf//plugins/hugo.json5#1.12.0",
    "github>kachick/renovate-config-asdf:self"
  ],
  "enabledManagers": ["asdf", "regex"]
}

This example referenced tagged version and enabled self updater.

Multiple versions and comments

Works since 1.10.0+.
Only first versions for each tool. It is same restriction as official manager.

Working examples: 1, 2, 3

GitLab / Self-Hosted Runner

1.4.1+ tagged releases works in GitLab hosted repositories.
See #191 and #206 for further detail.

Working example

NOTE

Working Examples

Languages

Tools

Note

renovate-config-asdf's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar kachick avatar maennchen avatar mcantinqc avatar multani avatar renovate[bot] avatar selfup-runner[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jshmrtn maennchen

renovate-config-asdf's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: config
Error type: Invalid allowedVersions
Message: The following allowedVersions does not parse as a valid version or range: "schedule:weekly"

Stable git tags

Renovate provide a way to use git ref

https://docs.renovatebot.com/config-presets/

However, using divided definitions in this repository.
So how do I manage them both development version and stable versions? ๐Ÿค”

For example, when I specified as below

"local>kachick/renovate-config-asdf//plugins/golang.json5#1.x",

It always points the tag. It makes annoy for development...

https://github.com/renovatebot/renovate/blob/6c7823799352341b9e349ae1321acf8d009e9cc9/renovate.json#L3
https://github.com/renovatebot/.github/blob/861063b66dd748c20eb2ef588118289920f0569e/default.json#L4-L14 is the default.json of config:base. Looks no trick exists ๐Ÿ˜’

debug log

https://app.renovatebot.com/dashboard#github/kachick/renovate-config-asdf/746208377

{
  "urls": {
    "https://api.github.com/graphql (POST,200)": 24,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/default.json (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/bun.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/clojure.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/crystal.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/deno.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/elixir.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/elm.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/erlang.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/golang.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/haskell.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/idris.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/kotlin.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/nim.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/nodejs.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/ocaml.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/php.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/python.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/ruby.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/rust.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/scala.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/shellcheck.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/shfmt.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/zig.json5 (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/contents/renovate.json (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-asdf/pulls (GET,200)": 1,
    "https://api.github.com/repos/kachick/renovate-config-dprint/contents/asdf.json (GET,200)": 1,
    "https://api.github.com/repos/renovatebot/spring-remediations/contents/base.json (GET,200)": 1,
    "https://api.github.com/repos/renovatebot/spring-remediations/contents/default.json (GET,200)": 1,
    "https://api.github.com/repos/whitesource/merge-confidence/contents/beta.json (GET,200)": 1
  },
{
  "name": "golang.json5",
  "path": "plugins/golang.json5",
  "sha": "93ec8fad6f5ee4da1cfcc7136c02afcf2391bf3b",
  "size": 389,
  "url": "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/golang.json5?ref=main",
  "html_url": "https://github.com/kachick/renovate-config-asdf/blob/main/plugins/golang.json5",
  "git_url": "https://api.github.com/repos/kachick/renovate-config-asdf/git/blobs/93ec8fad6f5ee4da1cfcc7136c02afcf2391bf3b",
  "download_url": "https://raw.githubusercontent.com/kachick/renovate-config-asdf/main/plugins/golang.json5",
  "type": "file",
  "content": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZG9jcy5yZW5vdmF0ZWJvdC5jb20v\ncmVub3ZhdGUtc2NoZW1hLmpzb24iLAogICJkZXNjcmlwdGlvbiI6ICJCdW1w\nIGdvbGFuZyBpbiAudG9vbC12ZXJzaW9ucyIsCiAgInJlZ2V4TWFuYWdlcnMi\nOiBbCiAgICB7CiAgICAgICJmaWxlTWF0Y2giOiBbIi50b29sLXZlcnNpb25z\nIl0sCiAgICAgICJtYXRjaFN0cmluZ3MiOiBbImdvbGFuZyAoPzxjdXJyZW50\nVmFsdWU+Lis/KVxcbiJdLAogICAgICAiZGVwTmFtZVRlbXBsYXRlIjogImdv\nbGFuZy9nbyIsCiAgICAgICJkYXRhc291cmNlVGVtcGxhdGUiOiAiZ2l0aHVi\nLXRhZ3MiLAogICAgICAiZXh0cmFjdFZlcnNpb25UZW1wbGF0ZSI6ICJeZ28o\nPzx2ZXJzaW9uPlxcUyspIgogICAgfQogIF0KfQo=\n",
  "encoding": "base64",
  "_links": {
    "self": "https://api.github.com/repos/kachick/renovate-config-asdf/contents/plugins/golang.json5?ref=main",
    "git": "https://api.github.com/repos/kachick/renovate-config-asdf/git/blobs/93ec8fad6f5ee4da1cfcc7136c02afcf2391bf3b",
    "html": "https://github.com/kachick/renovate-config-asdf/blob/main/plugins/golang.json5"
  }
}

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency renovate to ^37.175.3

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/ci-crystal.yml
  • actions/checkout v4
  • crystal-lang/install-crystal v1
  • actions/checkout v4
  • crystal-ameba/github-action v0.9.0
.github/workflows/ci-nix.yml
  • actions/checkout v4
  • DeterminateSystems/nix-installer-action v9
  • DeterminateSystems/magic-nix-cache-action v3
.github/workflows/ci-official.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/ci-tool-versions.yml
  • actions/checkout v4
  • asdf-vm/actions v3
.github/workflows/ci-typescript.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • denoland/setup-deno v1
.github/workflows/dependency-review.yml
  • actions/checkout v4
  • actions/dependency-review-action v4
.github/workflows/lint-common.yml
  • actions/checkout v4
  • dprint/check v2.2
  • actions/checkout v4
  • crate-ci/typos v1.18.1
.github/workflows/lint-definition.yml
  • actions/checkout v4
  • crystal-lang/install-crystal v1
.github/workflows/merge-bot-pr.yml
  • dependabot/fetch-metadata v1.6.0
  • actions/checkout v4
  • kachick/wait-other-jobs v2
  • actions/checkout v4
  • kachick/wait-other-jobs v2
.github/workflows/update-nixpkgs-and-versions-in-ci.yml
  • kachick/anylang-template 529fabf83617247d31ae50c6c33addb540ffd8f4
nix
flake.nix
  • nixpkgs nixos-unstable
npm
package.json
  • @tsconfig/node20 ^20.1.2
  • @tsconfig/strictest ^2.0.2
  • @types/node ^20.11.16
  • glob ^10.3.10
  • json5 ^2.2.3
  • re2 ^1.20.9
  • renovate ^37.172.3
  • tsx ^4.7.0
  • typescript ^5.3.3
  • json5 ^2.2.3
regex
dprint.json
  • dprint/dprint-plugin-json 0.19.1
  • dprint/dprint-plugin-markdown 0.16.3
  • dprint/dprint-plugin-typescript 0.88.10
examples/.tool-versions
  • aws/aws-cli 2.15.18
examples/.tool-versions
  • oven-sh/bun 1.0.26
examples/.tool-versions
  • sagiegurari/cargo-make 0.37.9
examples/.tool-versions
  • clojure/brew-install 1.11.1.1435
examples/.tool-versions
  • crystal-lang/crystal 1.11.2
examples/.tool-versions
  • denoland/deno 1.40.3
examples/.tool-versions
  • direnv/direnv 2.33.0
examples/.tool-versions
  • dprint/dprint 0.45.0
examples/.tool-versions
  • elixir-lang/elixir 1.16.1
examples/.tool-versions
  • elm/compiler 0.19.1
examples/.tool-versions
  • erlang/otp 26.2.1
examples/.tool-versions
  • practicalscheme/gauche 0.9.14
examples/.tool-versions
  • golang/go 1.22.0
examples/.tool-versions
  • ghc/ghc 9.8.1
examples/.tool-versions
  • helm/helm 3.14.0
examples/.tool-versions
  • helmfile/helmfile 0.161.0
examples/.tool-versions
  • gohugoio/hugo 0.122.0
examples/.tool-versions
  • idris-lang/Idris-dev 1.3.4
examples/.tool-versions
  • JuliaLang/julia 1.10.0
examples/.tool-versions
  • casey/just 1.23.0
examples/.tool-versions
  • JetBrains/kotlin 1.9.22
examples/.tool-versions
  • kubernetes-sigs/kustomize 5.3.0
examples/.tool-versions
  • lua/lua 5.4.6
examples/.tool-versions
  • nim-lang/Nim 2.0.2
examples/.tool-versions
  • nodejs/node 20.11.0
examples/.tool-versions
  • ocaml/ocaml 5.1.1
examples/.tool-versions
  • Perl/perl5 5.39.7
examples/.tool-versions
  • php/php-src 8.3.2
examples/.tool-versions
  • python/cpython 3.12.1
examples/.tool-versions
  • ruby-version 3.3.0
examples/.tool-versions
  • rust-lang/rust 1.75.0
examples/.tool-versions
  • lampepfl/dotty 3.3.1
examples/.tool-versions
  • koalaman/shellcheck 0.9.0
examples/.tool-versions
  • mvdan/sh 3.7.0
examples/.tool-versions
  • hashicorp/terraform 1.7.3
examples/.tool-versions
  • aquasecurity/trivy 0.49.1
examples/.tool-versions
  • crate-ci/typos 1.18.1
examples/.tool-versions
  • google/yamlfmt 0.10.0
examples/.tool-versions
  • ziglang/zig 0.11.0

  • Check this box to trigger a request for Renovate to run again on this repository

Merge Providers on Build

Including the preset as github>kachick/renovate-config-asdf#1.8.0 causes 38 requests to the GitHub API.

Since we're running Renovate for quite a lot of projects, that causes us to go over the GitHub rate limit. (Renovate should do a better job caching...)

I was wondering if you would be open to concat all the presets into one big preset when building the tag. That would reduce our traffic to GitHub greatly.

Support hugo extended versions

Include from GitLab (self-hosted) not possible

If I understand it correctly, the include is not possible because local on github refers to itself. When using from a self hosted gitlab, local refers to that one.

I therefore think that the default json should import from github>kachick/renovate-config-asdf//plugins/[PLUGIN].json5#[VERSION] instead of local>kachick/renovate-config-asdf//plugins/[PLUGIN].json5.

Tagged releases are broken

INFO: Repository started (repository=foo/bar)
       "renovateVersion": "32.236.1"
 INFO: Throwing preset error (repository=foo/bar)
       "validationError": "Cannot find preset's package (local>kachick/renovate-config-asdf//plugins/bun.json5#1.4.0). Note: this is a *nested* preset so please contact the preset author if you are unable to fix it yourself."
 INFO: Repository has invalid config (repository=foo/bar)
       "error": {
         "validationError": "Cannot find preset's package (local>kachick/renovate-config-asdf//plugins/bun.json5#1.4.0). Note: this is a *nested* preset so please contact the preset author if you are unable to fix it yourself.",
         "message": "config-validation",
         "stack": "Error: config-validation\n    at fetchPreset (/usr/src/app/node_modules/renovate/lib/config/presets/index.ts:370:19)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at resolveConfigPresets (/usr/src/app/node_modules/renovate/lib/config/presets/index.ts:291:31)\n    at Object.resolveConfigPresets (/usr/src/app/node_modules/renovate/lib/config/presets/index.ts:297:30)\n    at mergeRenovateConfig (/usr/src/app/node_modules/renovate/lib/workers/repository/init/merge.ts:225:5)\n    at getRepoConfig (/usr/src/app/node_modules/renovate/lib/workers/repository/init/config.ts:16:12)\n    at initRepo (/usr/src/app/node_modules/renovate/lib/workers/repository/init/index.ts:38:12)\n    at Object.renovateRepository (/usr/src/app/node_modules/renovate/lib/workers/repository/index.ts:43:14)\n    at Object.start (/usr/src/app/node_modules/renovate/lib/workers/global/index.ts:160:7)\n    at /usr/src/app/node_modules/renovate/lib/renovate.ts:16:22"
       }

I guess the #1.4.0 suffix in https://github.com/kachick/renovate-config-asdf/blob/1.4.0/default.json doesn't work with local but only with github. A possible fix could be to replace local> with github> then?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.