forked from eclipse-theia/theia-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(renovate): onboard to the org-wide shared preset #131
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": ["local>EduIDE/.github:renovate-config"], | ||
| "packageRules": [ | ||
| { | ||
| "description": "Sample project shipped for the demo, not a dependency of this repo.", | ||
| "matchFileNames": ["demo/dockerfiles/demo-theia-docker/project/**"], | ||
| "enabled": false | ||
| }, | ||
| { | ||
| "description": "Terraform providers use unbounded >= constraints; only surface a PR when the floor genuinely moves.", | ||
| "matchManagers": ["terraform"], | ||
| "matchDepTypes": ["provider", "required_provider"], | ||
| "rangeStrategy": "replace" | ||
| } | ||
| ] | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: EduIDE/EduIDE-Cloud
Length of output: 203
🏁 Script executed:
Repository: EduIDE/EduIDE-Cloud
Length of output: 29830
🌐 Web query:
Renovate configuration rangeStrategy replace bump documentation Terraform unbounded >= constraint💡 Result:
In Renovate, the
rangeStrategyconfiguration option determines how version ranges (such as those used in Terraform'srequired_providersor module blocks) are updated [1][2]. When working with Terraform and constraints like>= 1.0.0, the behavior depends on the chosen strategy [3]: -replace: This strategy replaces the existing version string with the new version [1][4]. If you have a range like>= 1.0.0,replacemay change it to the absolute new version, which might effectively narrow the range or remove the intended flexibility of the original constraint [3]. -bump: This strategy is intended to increase the minimum version required (e.g., updating>= 1.0.0to>= 1.5.0) [5]. Note that in some contexts,bumpandreplacerequire proper parsing of the range to function correctly; historical issues with Terraform's~>operator have been addressed in recent versions of Renovate [6][7]. -widen: If you find thatreplaceorbumpincorrectly restricts your range (e.g., changing>= 1.0.0to a specific version instead of keeping the open-ended constraint),widenis often the recommended solution for Terraform [3]. It is designed to preserve or expand the range rather than pinning it to a single value [3]. -update-lockfile: This strategy is used to update the provider versions within the Terraform lockfile itself [8][9]. However, users should be aware that this can sometimes lead to Renovate rewriting theconstraintsfield in the lockfile, which may conflict with manualterraform initoperations if the constraints are not normalized in a format that Terraform expects [10]. For most Terraform use cases where you want to maintain open-ended constraints while receiving updates,widenis generally the most appropriaterangeStrategy[3]. If you are experiencing issues where the constraints are becoming too restrictive, verify yourrangeStrategysetting within yourpackageRules[3]. [1][2][3][8]Citations:
🌐 Web query:
site:docs.renovatebot.com/configuration-options rangeStrategy replace bump "Replace the range"💡 Result:
In Renovate, rangeStrategy defines how dependency version ranges or constraints are updated when a new version is available [1][2]. The choice between replace and bump determines whether Renovate replaces the existing range with a new one or bumps the minimum required version [2]. Replace: This strategy typically updates the version range string directly with the new version [2]. For many managers, this is the default behavior, where Renovate replaces the current version or range with the latest available version [2]. However, in some contexts—such as NuGet "bare" versions (e.g., Version="1.2.3") which are interpreted as an open-ended minimum range—replace may fail to detect updates because the new version already satisfies the existing range [2]. Bump: This strategy is used to advance the minimum required version to the latest release [2]. When using bump, Renovate modifies the existing range to ensure the new version is included, effectively raising the minimum constraint [2]. This is particularly useful for managers where a simple replacement does not trigger an update for open-ended ranges [2]. For example, configuring rangeStrategy to bump for NuGet allows Renovate to update a version like 1.2.3 to 1.5.0 [2]. Configuration: You can control this behavior globally or via packageRules [1][2]: { "packageRules": [ { "matchManagers": ["nuget"], "rangeStrategy": "bump" } ] } Available rangeStrategy values and support vary by manager (e.g., go-mod-directive, cargo, and swift all support specific subsets of strategies like bump, replace, pin, or widen) [1][3][4]. Always consult the documentation for the specific manager you are using to confirm which strategies are supported [1][3][4].
Citations:
🌐 Web query:
site:docs.renovatebot.com/modules/versioning/hashicorp rangeStrategy Terraform replace bump💡 Result:
In Renovate, the rangeStrategy option determines how the tool updates version constraints in your configuration files when using Hashicorp versioning, which is used by Terraform [1]. The available strategies for Terraform include bump, widen, and replace [1]. While specific behavioral documentation for these strategies varies by ecosystem, generally within Renovate: Bump: This strategy attempts to increase the existing version constraint to include the new version, often by updating the upper bound of a range if applicable. Replace: This strategy replaces the existing version constraint entirely with the new version or the new range. Because Hashicorp versioning supports ranges, these strategies allow you to control whether Renovate maintains your existing constraint logic (such as compatibility bounds) or simply switches to the latest version requirement [1]. You can configure this in your Renovate configuration file, for example: { "rangeStrategy": "replace" } Refer to your specific Renovate configuration setup to determine which strategy best fits your project's versioning requirements.
Citations:
🌐 Web query:
Renovate "bump" "replace" "rangeStrategy" "in-range"💡 Result:
In Renovate, the rangeStrategy option determines how the dependency version constraint in your manifest file (e.g., package.json, requirements.txt) is updated when a new version of a dependency is released [1][2]. The default strategy, replace, only updates the constraint if the new version falls outside of the existing range [3][4]. If you want Renovate to update your manifest to reflect new versions even when they satisfy your current SemVer range (often called in-range updates), you must explicitly change the rangeStrategy to bump [5][4]. Key points regarding rangeStrategy: 1. bump: This strategy updates the version constraint in your manifest file to the new version, effectively pushing the minimum version requirement forward [2][3]. This is the required setting if you want Renovate to propose PRs for updates that are already technically satisfied by your existing range [5][4]. 2. replace: This is the default behavior [3]. It only updates the manifest if the new version is outside the current allowed range [2]. 3. Other strategies: Depending on the ecosystem and specific needs, other strategies such as widen (to broaden the range) or pin (to lock to a specific version) may be available, though bump is the standard choice for ensuring constraints keep pace with dependencies [2][6][7]. If you find that your project is not receiving PRs for in-range updates, setting "rangeStrategy": "bump" in your renovate.json (or via packageRules for specific dependencies) is the correct way to enable this behavior [5][4]. If you also wish to ensure separate PRs are created for minor and patch updates, you should additionally set "separateMinorPatch": true [5][4].
Citations:
Use
bumpfor unbounded Terraform constraints.replacedoes not advance a range when the candidate version satisfies it. Every newer provider satisfies>= 3.0.2, so this rule will not move the provider floor. SetrangeStrategytobumpto update the lower bound.🤖 Prompt for AI Agents