Unintuitive/unresolvable "WARN: Invalid hashicorp constraint" #37124
-
How are you running Renovate?A Mend.io-hosted app If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.No response Please tell us more about your question or problemOur providers.tf file contains the following values: terraform {
required_version = ">= 1.9.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4.37.0"
}
azapi = {
source = "Azure/azapi"
version = "2.5.0"
}
random = {
source = "hashicorp/random"
version = "3.7.2"
}
}
} These values are valid and using the exact "no operator" syntax (so if it's just the version number without an operator, it should be treated as exact). However, Renovate constantly reports WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
} We have attempted other syntax variants such as
Logs (if relevant)LogsWARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
}
WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
}
WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
}
WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
}
WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
}
WARN: Invalid hashicorp constraint
{
"constraint": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
"element": ".*-(alpha|beta|rc|next|preview|dev|experimental).*"
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there, Please help this Discussion progress 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. Please follow these steps:
If you need help with running Renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Minimal reproduction created here: https://github.com/jujaga/renovate-37124 |
Beta Was this translation helpful? Give feedback.
Minimal reproduction created here: https://github.com/jujaga/renovate-37124
Root cause identified and resolved. It was a packageRule application with the wrong regex matching pattern.