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

tool: add a script to centralize golang version update #219

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

clamoriniere
Copy link
Collaborator

What does this PR do?

the New script is taking the version from the go.mod file thank to the go mod edit --json command ouput.
The idea is to first update the golang version in the go.mod file, then run the command make update-golang that will patch all the files that contains the golang version.

commits:

  • apply linter on .github/workflow files
  • Add script to centralise golang version update

Motivation

To not forget to update the golang version in one of the many file that have the golang version in parameter.
we needed to have a solution to centralise the update of the golang version, but also to verify that all file are in sync

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

Write there any instructions and details you may have to test your PR.

@clamoriniere clamoriniere added this to the no-milestone milestone Jul 10, 2024
@clamoriniere clamoriniere requested a review from a team as a code owner July 10, 2024 15:37
@clamoriniere clamoriniere force-pushed the clamoriniere/verify-golang-version branch from 59ebbc4 to b04aa3f Compare July 10, 2024 15:38
github-actions[bot]
github-actions bot previously approved these changes Jul 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Jul 10, 2024
the script is taking the golang version present in the go.mod file and apply
patch on the differents files that contains the golang version. for example
Dockerfile and github workflow files.
github-actions[bot]
github-actions bot previously approved these changes Jul 10, 2024
L3n41c
L3n41c previously approved these changes Jul 10, 2024
.gitignore Outdated Show resolved Hide resolved
.gitlab-ci.yml Outdated Show resolved Hide resolved
hack/install-jq.sh Outdated Show resolved Hide resolved
github-actions[bot]
github-actions bot previously approved these changes Jul 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Jul 10, 2024
@clamoriniere
Copy link
Collaborator Author

@L3n41c PR updated and ready for a second path.

@clamoriniere
Copy link
Collaborator Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jul 10, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 9m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 272d0da into main Jul 10, 2024
30 checks passed
@dd-mergequeue dd-mergequeue bot deleted the clamoriniere/verify-golang-version branch July 10, 2024 21:22
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.

2 participants