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

feat: return error if ec version is a pre-release #190

Conversation

ricardomaraschini
Copy link
Contributor

if the version present in the embedded cluster config is a pre-release, the linter should return an error.

if the version present in the embedded cluster config is a pre-release,
the linter should return an error.
@ricardomaraschini ricardomaraschini added the type::feature New feature or request label Nov 6, 2024
as per conversaions with @salah.
pkg/ec/lint.go Outdated
Comment on lines 124 to 126
if newVersion.PreRelease {
return &newVersion, true, nil
}
Copy link
Member

Choose a reason for hiding this comment

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

this needs a comment - it looks like we're purposefully not caching prereleases, which I would agree with, but that should be explicitly listed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ricardomaraschini ricardomaraschini merged commit 3521b0f into main Nov 6, 2024
6 checks passed
@ricardomaraschini ricardomaraschini deleted the ricardomaraschini/sc-115283/linter-should-fail-if-pre-release-ec-version branch November 6, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants