update a go mod version within a Makefile #28163
Replies: 9 comments 1 reply
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Hi, please make a minimal reproduction (ideally one dependency and no unrelated config) so it's easier to read logs and debug |
Beta Was this translation helpful? Give feedback.
-
I've made a very minimal reproduction (https://github.com/sylvainOL/setupenv-renovate) and tested it using renovate app and our self hosted runner. TL;DR:
self hosted configurationmodule.exports = {
"platform": "gitlab",
"dependencyDashboardAutoclose": true,
"repositoryCache": "enabled",
"autodiscover": true,
"extends": ["mergeConfidence:all-badges"],
"binarySource": "install",
"ignorePrAuthor": true,
"onboardingConfig": {
"extends": [ "local>sylvainOL/renovate"]
},
"allowedPostUpgradeCommands": ["./.renovate-post-upgrade"],
repositories: ["sylvainOL/test-project"],
hostRules: [
{
matchHost: 'docker.io',
username: 'tldoln',
password: process.env.DOCKER_HUB_PASSWORD,
},
{
matchHost: 'gitlab.tld',
token: process.env.BOT_TOKEN_NIF,
},
{
matchHost: 'registry.gitlab.tld',
username: 'group_148586_bot3',
password: process.env.BOT_READ_REGISTRY_TOKEN
}
],
}; self hosted gitlab ci---
stages:
- build
- test
###
# Variables
##
variables:
# renovate part
RENOVATE_IMAGE: "renovate/renovate:latest"
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_AUTODISCOVER_FILTER: '${CI_PROJECT_ROOT_NAMESPACE}/**'
RENOVATE_LOG_FILE_LEVEL: trace
LOG_LEVEL: debug
RENOVATE_TOKEN: $BOT_TOKEN
GOPROXY: "https://proxy.golang.org"
workflow:
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# run the pipeline in other cases
- when: always
.renovate-base:
image: $RENOVATE_IMAGE
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
# TODO (if necessary): define cache policy here
cache:
key: ${CI_COMMIT_REF_SLUG}-renovate
paths:
- renovate/cache/renovate/**
# validator job
renovate-validator:
extends: .renovate-base
stage: build
# force no dependency
dependencies: []
script:
- renovate-config-validator
# dependency check job: on manual or schedule (dry-run otherwise)
renovate-depcheck:
extends: .renovate-base
stage: test
# force no dependency
dependencies: []
variables:
# dry-run by default
RENOVATE_DRY_RUN: "true"
script:
- renovate $RENOVATE_EXTRA_FLAGS
artifacts:
when: always
expire_in: 1d
paths:
- "$RENOVATE_LOG_FILE"
rules:
# not dry run on manual or schedule
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
variables:
RENOVATE_DRY_RUN: "false"
- if: $RENOVATE_TOKEN Logs renovate app
I've also runned it on our internal gitlab with same renovate.json + Makefile and here's the (different) result: Logs renovate self hosted
|
Beta Was this translation helpful? Give feedback.
-
I've slimmed the minimal reproduction (https://github.com/sylvainOL/setupenv-renovate/) to really minimal and tested against renovate app and my own self hosted renovate (on gitlab) TL;DR; I've got two different (bad) results:
renovate self hosted config.jsmodule.exports = {
"platform": "gitlab",
"dependencyDashboardAutoclose": true,
"repositoryCache": "enabled",
"autodiscover": true,
"extends": ["mergeConfidence:all-badges"],
"binarySource": "install",
"ignorePrAuthor": true,
"onboardingConfig": {
"extends": [ "local>sylvainOL/renovate"]
},
"allowedPostUpgradeCommands": ["./.renovate-post-upgrade"],
repositories: ["sylvainOL/test-project"],
hostRules: [
{
matchHost: 'docker.io',
username: 'user',
password: process.env.DOCKER_HUB_PASSWORD,
},
{
matchHost: 'gitlab.tld',
token: process.env.BOT_TOKEN_NIF,
},
{
matchHost: 'registry.gitlab.tld',
username: 'group_bot',
password: process.env.BOT_READ_REGISTRY_TOKEN
}
],
}; renovate self hosted gitlab ci---
stages:
- build
- test
###
# Variables
##
variables:
# renovate part
RENOVATE_IMAGE: "renovate/renovate:latest"
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_AUTODISCOVER_FILTER: '${CI_PROJECT_ROOT_NAMESPACE}/**'
RENOVATE_LOG_FILE_LEVEL: trace
LOG_LEVEL: debug
RENOVATE_TOKEN: $BOT_TOKEN
GOPROXY: "https://proxy.golang.org"
workflow:
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# run the pipeline in other cases
- when: always
.renovate-base:
image: $RENOVATE_IMAGE
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
# TODO (if necessary): define cache policy here
cache:
key: ${CI_COMMIT_REF_SLUG}-renovate
paths:
- renovate/cache/renovate/**
# validator job
renovate-validator:
extends: .renovate-base
stage: build
# force no dependency
dependencies: []
script:
- renovate-config-validator
# dependency check job: on manual or schedule (dry-run otherwise)
renovate-depcheck:
extends: .renovate-base
stage: test
# force no dependency
dependencies: []
variables:
# dry-run by default
RENOVATE_DRY_RUN: "true"
script:
- renovate $RENOVATE_EXTRA_FLAGS
artifacts:
when: always
expire_in: 1d
paths:
- "$RENOVATE_LOG_FILE"
rules:
# not dry run on manual or schedule
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
variables:
RENOVATE_DRY_RUN: "false"
- if: $RENOVATE_TOKEN renovate app logs
renovate self hosted logs ()
|
Beta Was this translation helpful? Give feedback.
-
I've slimmed the minimal reproduction (https://github.com/sylvainOL/setupenv-renovate/) to really minimal and tested against renovate app and my own self hosted renovate (on gitlab) TL;DR; I've got two different (bad) results:
renovate self hosted config.jsmodule.exports = {
"platform": "gitlab",
"dependencyDashboardAutoclose": true,
"repositoryCache": "enabled",
"autodiscover": true,
"extends": ["mergeConfidence:all-badges"],
"binarySource": "install",
"ignorePrAuthor": true,
"onboardingConfig": {
"extends": [ "local>sylvainOL/renovate"]
},
"allowedPostUpgradeCommands": ["./.renovate-post-upgrade"],
repositories: ["sylvainOL/test-project"],
hostRules: [
{
matchHost: 'docker.io',
username: 'user',
password: process.env.DOCKER_HUB_PASSWORD,
},
{
matchHost: 'gitlab.tld',
token: process.env.BOT_TOKEN_NIF,
},
{
matchHost: 'registry.gitlab.tld',
username: 'group_bot',
password: process.env.BOT_READ_REGISTRY_TOKEN
}
],
}; renovate self hosted gitlab ci---
stages:
- build
- test
###
# Variables
##
variables:
# renovate part
RENOVATE_IMAGE: "renovate/renovate:latest"
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_AUTODISCOVER_FILTER: '${CI_PROJECT_ROOT_NAMESPACE}/**'
RENOVATE_LOG_FILE_LEVEL: trace
LOG_LEVEL: debug
RENOVATE_TOKEN: $BOT_TOKEN
GOPROXY: "https://proxy.golang.org"
workflow:
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# run the pipeline in other cases
- when: always
.renovate-base:
image: $RENOVATE_IMAGE
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
# TODO (if necessary): define cache policy here
cache:
key: ${CI_COMMIT_REF_SLUG}-renovate
paths:
- renovate/cache/renovate/**
# validator job
renovate-validator:
extends: .renovate-base
stage: build
# force no dependency
dependencies: []
script:
- renovate-config-validator
# dependency check job: on manual or schedule (dry-run otherwise)
renovate-depcheck:
extends: .renovate-base
stage: test
# force no dependency
dependencies: []
variables:
# dry-run by default
RENOVATE_DRY_RUN: "true"
script:
- renovate $RENOVATE_EXTRA_FLAGS
artifacts:
when: always
expire_in: 1d
paths:
- "$RENOVATE_LOG_FILE"
rules:
# not dry run on manual or schedule
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
variables:
RENOVATE_DRY_RUN: "false"
- if: $RENOVATE_TOKEN renovate app logs
renovate self hosted logs
|
Beta Was this translation helpful? Give feedback.
-
I've slimmed the minimal reproduction (https://github.com/sylvainOL/setupenv-renovate/) to really minimal and tested against renovate app and my own self hosted renovate (on gitlab) TL;DR; I've got two different (bad) results:
renovate self hosted config.jsmodule.exports = {
"platform": "gitlab",
"dependencyDashboardAutoclose": true,
"repositoryCache": "enabled",
"autodiscover": true,
"extends": ["mergeConfidence:all-badges"],
"binarySource": "install",
"ignorePrAuthor": true,
"onboardingConfig": {
"extends": [ "local>sylvainOL/renovate"]
},
"allowedPostUpgradeCommands": ["./.renovate-post-upgrade"],
repositories: ["sylvainOL/test-project"],
hostRules: [
{
matchHost: 'docker.io',
username: 'user',
password: process.env.DOCKER_HUB_PASSWORD,
},
{
matchHost: 'gitlab.tld',
token: process.env.BOT_TOKEN_NIF,
},
{
matchHost: 'registry.gitlab.tld',
username: 'group_bot',
password: process.env.BOT_READ_REGISTRY_TOKEN
}
],
}; renovate self hosted gitlab ci---
stages:
- build
- test
###
# Variables
##
variables:
# renovate part
RENOVATE_IMAGE: "renovate/renovate:latest"
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_AUTODISCOVER_FILTER: '${CI_PROJECT_ROOT_NAMESPACE}/**'
RENOVATE_LOG_FILE_LEVEL: trace
LOG_LEVEL: debug
RENOVATE_TOKEN: $BOT_TOKEN
GOPROXY: "https://proxy.golang.org"
workflow:
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# run the pipeline in other cases
- when: always
.renovate-base:
image: $RENOVATE_IMAGE
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
# TODO (if necessary): define cache policy here
cache:
key: ${CI_COMMIT_REF_SLUG}-renovate
paths:
- renovate/cache/renovate/**
# validator job
renovate-validator:
extends: .renovate-base
stage: build
# force no dependency
dependencies: []
script:
- renovate-config-validator
# dependency check job: on manual or schedule (dry-run otherwise)
renovate-depcheck:
extends: .renovate-base
stage: test
# force no dependency
dependencies: []
variables:
# dry-run by default
RENOVATE_DRY_RUN: "true"
script:
- renovate $RENOVATE_EXTRA_FLAGS
artifacts:
when: always
expire_in: 1d
paths:
- "$RENOVATE_LOG_FILE"
rules:
# not dry run on manual or schedule
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
variables:
RENOVATE_DRY_RUN: "false"
- if: $RENOVATE_TOKEN |
Beta Was this translation helpful? Give feedback.
-
renovate app logs
|
Beta Was this translation helpful? Give feedback.
-
renovate self hosted logs
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I had to cut my answer in 3 in order for github to allow it |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I would like help with my configuration
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab and latest version
Please tell us more about your question or problem
Hello,
when creating golang kubernetes operator, a Makefile is created with some versions in it.
Most of them can be retrieved via github-releases so it's "easy" but I've got one that can only be retrieved via go mod (I guess).
I've tried a lot of regex but I think it can't retrieve the version in golang proxy (but I can find a version list in pkg.go.dev)
I've added in the
go.mod
to see if renovate can find it and it seems to be able to find the version list.https://github.com/sylvainOL/setupenv-renovate/tree/main is the minimal reproductible project
Any idea / proposal in order to find this version in Makefile?
Thanks!
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions