-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(deps): update github.com/warrensbox/terraform-switcher digest to d7dfd1b in go.mod #2816
fix(deps): update github.com/warrensbox/terraform-switcher digest to d7dfd1b in go.mod #2816
Conversation
This is a bit odd. The terraform-switcher library uses the Is there a way to override a single golang dependency's base branch and only for the https://docs.renovatebot.com/configuration-options/#basebranches cc: @krrrr38 |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for the If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
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.
See above comment
35f1688
to
3a2f534
Compare
It seems that terraform-switcher has no I just tried other solutions, but not works fine now.
use regexManager instead gomod diff examplediff --git a/go.mod b/go.mod
index cabe6d01..651284cd 100644
--- a/go.mod
+++ b/go.mod
@@ -39,3 +39,4 @@ require (
github.com/stretchr/testify v1.8.1
github.com/urfave/cli v1.22.10
github.com/urfave/negroni v1.0.0
+ // renovate: datasource=github-releases depName=warrensbox/terraform-switcher
github.com/warrensbox/terraform-switcher v0.1.1-0.20220704061544-b24be8c19820
github.com/xanzy/go-gitlab v0.77.0
go.etcd.io/bbolt v1.3.6
go.uber.org/zap v1.24.0
diff --git a/renovate.json5 b/renovate.json5
index 6bfffd87..17fa008d 100644
--- a/renovate.json5
+++ b/renovate.json5
@@ -34,20 +34,6 @@
":warning: You need to upgrade testing-image conftest firstly, then upgrade other conftest versions for e2e :warning:",
],
},
+ // terraform-switcher use release branch, not default branch
+ // to support it, disable gomod manager and update by regex manager
+ {
+ // terraform-switcher use release branch, not default branch
+ // to support it, disable gomod manager and update by regex manager
+ matchManagers: ["gomod"],
+ matchPackageNames: ["github.com/warrensbox/terraform-switcher"],
+ enabled: false
+ },
],
// https://docs.renovatebot.com/modules/manager/regex/
regexManagers: [
@@ -83,17 +69,5 @@
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)',
},
+ {
+ // some go module cannot handle by gomod manager
+ // - github.com/warrensbox/terraform-switcher use release branch, not default branch
+ fileMatch: ["go.mod$"],
+ matchStrings: [
+ // example:
+ // # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
+ // github.com/warrensbox/terraform-switcher vX.X.X-0.000000000-aaaaaaaaaa
+ "renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?github.com/.* (?<currentValue>.*)\\s",
+ ],
+ versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
+ },
]
} Current conclusion: it is better to wait terraform-switcher branch fix. (or someone let me know the other solution) |
I like your regexmanager workaround to watch the gh releases instead of the tags. Feel free to propose |
3a2f534
to
f9abac3
Compare
f9abac3
to
f720f72
Compare
b8a95a6
to
1448f20
Compare
1448f20
to
0254c6b
Compare
…d7dfd1b in go.mod
0254c6b
to
5526b33
Compare
This PR contains the following updates:
201c8e9
->d7dfd1b
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.