Renovate: Current regexManager docu is wrong

Created on 16 Mar 2020  路  10Comments  路  Source: renovatebot/renovate

The current documentation for the generic regexManager does not work.

ENV POETRY_VERSION=1.0.0 # github-releases/python-poetry/poetry

Syntax error - can't find = in "#". Must be of the form: name=value

Workaround is to provide separate manager for each ENV

priority-2-important docs

Most helpful comment

Sorry, it's the docker build itself that's failing.. not the parsing

All 10 comments

The examples I used were the ones I tested with during development. We should definitely not need one manager per env

image

VSCode is complaining too, does normal docker build works?

oh, hmm - now I see what you mean, sorry. Can't recall if I ran docker build :o)

I guess we could put comments above each ENV line instead

If regex matching works it would be a better option

tested locally, build always fails with syntax error
image

Sorry, it's the docker build itself that's failing.. not the parsing

we moved to a multiline attempt due to this restriction in docker build:

Dockerfile:

# pypi: awscli
ENV AWS_CLI_VERSION=1.16.198

renovate config.js

    {
      fileMatch: ["(^|/)Dockerfile.*$"],
      matchStrings: [
        String.raw`#\s*(?<datasource>[^\s:]+)[\s:"']+(?<depName>[^"\s]+)["']?\s(?:ENV|ARG)\s+[^\s=]+["'\s=]+(?<currentValue>[^@\s"']+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?`
      ]
    }

this is now fixed and live at https://docs.renovatebot.com/modules/manager/regex/#advanced-capture

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Siilwyn picture Siilwyn  路  4Comments

Flydiverny picture Flydiverny  路  4Comments

jgarec picture jgarec  路  3Comments

ptbrowne picture ptbrowne  路  3Comments

zephraph picture zephraph  路  3Comments