Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(coderd/database): add missing v prefix to provisioner_daemons.api_version #11385

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 2 commits into from
Jan 3, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Jan 3, 2024

When adding provisioner_daemons.api_version initially I missed the v prefix.
This is a requirement of /x/mod/semver, so adding a small migration to normalize this now.

@johnstcn johnstcn self-assigned this Jan 3, 2024
@johnstcn johnstcn force-pushed the cj/provisionerd-apiversion-prefix branch from a5e4f8c to 4bab3e8 Compare January 3, 2024 12:28
@johnstcn johnstcn force-pushed the cj/provisionerd-apiversion-prefix branch from aab20f2 to be3bc7b Compare January 3, 2024 12:51
@@ -24,7 +24,7 @@ const (
// APIVersionCurrent is the current provisionerd API version.
// Breaking changes to the provisionerd API **MUST** increment
// the major version below.
APIVersionCurrent = "1.0"
APIVersionCurrent = "v1.0"
Copy link
Member

Choose a reason for hiding this comment

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

If this is semver, should it be v1.0.0? Maybe this shorthand is allowed though.

Copy link
Member Author

Choose a reason for hiding this comment

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

// The general form of a semantic version string accepted by this package is
//
//	vMAJOR[.MINOR[.PATCH[-PRERELEASE][+BUILD]]]
//
// where square brackets indicate optional parts of the syntax;

So shorthand is OK here.

@johnstcn johnstcn merged commit f80a1cf into main Jan 3, 2024
@johnstcn johnstcn deleted the cj/provisionerd-apiversion-prefix branch January 3, 2024 14:11
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2024
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