-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some cleanup related to code generations #159
Conversation
It allows dependabot to bump the dependencies for tools, which is better than putting the versions in a bash script and never bumping them.
.buildkite/pipeline.yml
Outdated
podSpec: | ||
containers: | ||
- name: docker | ||
image: golang:1.20.2-alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the latest is 1.20.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a pragmatic decision to drop the versioning of these. I would expect some bot to keep them up to date, but I don't think Dependabot supports this. The commit message comment has more justification on why an unversioned container is ok.
It's not necessary to pin the version as this is a job that does not produce artefacts that we ship, and go's compatibility promise should mean that any future version of go should be able to compile this code.
The main addition is to generate the GraphQL client when
go genereate ./...
is run, and a step in CI to ensure generated code has been checked in.Other than that there is some standardisation of how code is generated, conversion of tests package name to be suffixed with
_test
and some cosmetic changes to the pipeline.