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 deb and rpm package upgrade validation #94

Merged
merged 14 commits into from
Jul 11, 2023
Merged

Conversation

guicaulada
Copy link
Contributor

No description provided.

@guicaulada guicaulada requested a review from a team July 6, 2023 18:26
Copy link
Collaborator

@kminehart kminehart left a comment

Choose a reason for hiding this comment

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

I think the approach makes sense!

pipelines/package_validate.go Outdated Show resolved Hide resolved
pipelines/package_validate.go Outdated Show resolved Hide resolved
pipelines/package_validate.go Outdated Show resolved Hide resolved
pipelines/package_validate.go Outdated Show resolved Hide resolved
pipelines/package_validate.go Outdated Show resolved Hide resolved
pipelines/package_validate.go Show resolved Hide resolved
pipelines/package_names.go Outdated Show resolved Hide resolved
Comment on lines 248 to 254
return fmt.Errorf("license in package does not match edition in package name")
}
}

if taropts.Edition == "" {
if err != nil || !strings.Contains(license, "GNU AFFERO GENERAL PUBLIC LICENSE") {
return fmt.Errorf("failed to validate open-source license")
if !strings.Contains(license, "GNU AFFERO GENERAL PUBLIC LICENSE") {
return fmt.Errorf("license in package does not match edition in package name")
Copy link
Collaborator

Choose a reason for hiding this comment

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

in these contexts we know what to expect; we should be clearer about what we expect vs what was given. "license in package is not the Grafana Enterprise license agreement", for example.

@guicaulada guicaulada merged commit ff8ba0b into main Jul 11, 2023
1 check passed
@guicaulada guicaulada deleted the validate-upgrade branch July 11, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants