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

Pin revive version #3796

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Jan 4, 2024

Close: #3795

1. Explain what the PR does

186bded chore: bump k8s.io/cri-api

- Removes go.mod replace directive for github.com/kubernetes/cri-api.
- Bump it to v0.29.0.

More info: https://kubernetes.io/blog/2022/12/09/kubernetes-v1-26-release/#cri-v1alpha2-removed

c51481b fix: pin revive to e33fb87

revive v1.3.5 wrongly includes a replace directive which breaks the
go install command.

This commit pins revive to e33fb87 that is the fix for this issue.

2. Explain how to test it

3. Other comments

@geyslan geyslan self-assigned this Jan 4, 2024
@geyslan geyslan changed the title 3795 pin revive version Pin revive version Jan 4, 2024
Copy link
Contributor

@rafaeldtinoco rafaeldtinoco left a comment

Choose a reason for hiding this comment

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

LGTM

go.mod Outdated Show resolved Hide resolved
revive v1.3.5 wrongly includes a replace directive which breaks the
go install command.

This commit pins revive to e33fb87 that is the fix for this issue.
- Removes go.mod replace directive for github.com/kubernetes/cri-api.
- Bump it to v0.29.0.

More info: https://kubernetes.io/blog/2022/12/09/kubernetes-v1-26-release/#cri-v1alpha2-removed
@geyslan
Copy link
Member Author

geyslan commented Jan 5, 2024

LGTM

Thanks @rafaeldtinoco. I've made changes addressing @NDStrahilevitz concerns. LMK if it's ok.

Copy link
Collaborator

@NDStrahilevitz NDStrahilevitz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for addressing my request :)

@geyslan geyslan merged commit 4be97e0 into aquasecurity:main Jan 5, 2024
30 checks passed
@geyslan geyslan deleted the 3795-pin-revive-version branch January 5, 2024 12:48
@geyslan
Copy link
Member Author

geyslan commented Jan 9, 2024

Commit 186bded has been reported to break some local environments. This is due to the local use of golang version from 1.21.

To avoid this, use the same version (1.20.8) of the github workflow (tests) locally:

https://github.com/aquasecurity/tracee/blob/main/.github/actions/build-dependencies/action.yaml#L18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

revive 1.3.5 doesn't accept go.mod replace
3 participants