Skip to content
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

🔧 add utility to help version providers #1860

Merged
merged 4 commits into from
Sep 23, 2023
Merged

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Sep 23, 2023

The last few beta releases have shown how hard it is to keep all provider versions updated. To ease the pain, we are starting a small utility.

It is still in its infancy, but it is already really helpful:

alias version="go run providers-sdk/v1/util/version/version.go"

Check what needs updating (fast)

version check providers/*/ --fast

image

Update one provider, automatically bump the patch version when applicable, and add a commit:

version update providers/o* --fast --increment=patch --commit

image

Note 1: We use Golang's go-git for git processing, which is cleaner than using git in go, but also a lot slower, especially with larger files (beware: it sometimes may look like it's blocking on things, but it just takes long to process files).

Note 2: We are not looking into commits right now to find the last version bump, but that will be added next.

@arlimus arlimus force-pushed the dom/provider-version branch 5 times, most recently from d5b51a7 to 660ad19 Compare September 23, 2023 06:56
The last few beta releases have shown how hard it is to keep all provider versions updated. To ease the pain, we are starting a small utility.

It is still in its infancy, but it is already really helpful:

```bash
alias version="go run providers-sdk/v1/util/version/version.go"

// check if any provider needs a version update (fast)
version check providers/*/ --fast

// interactively update the version for one provider
version update providers/os
```

Signed-off-by: Dominik Richter <[email protected]>
This makes the release-process a lot easier and creates less noise in the commit history.

Signed-off-by: Dominik Richter <[email protected]>
@arlimus arlimus force-pushed the dom/provider-version branch from 660ad19 to 23e2cea Compare September 23, 2023 07:28
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So cool

@chris-rock chris-rock merged commit 8263d60 into main Sep 23, 2023
10 checks passed
@chris-rock chris-rock deleted the dom/provider-version branch September 23, 2023 07:37
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants