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

Some cleanup related to code generations #159

Merged
merged 9 commits into from
Apr 20, 2023
Merged

Conversation

triarius
Copy link
Contributor

@triarius triarius commented Apr 17, 2023

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.

@triarius triarius requested a review from a team April 17, 2023 08:09
@triarius triarius changed the title Some cleans related to code generations Some cleanup related to code generations Apr 17, 2023
podSpec:
containers:
- name: docker
image: golang:1.20.2-alpine
Copy link
Contributor

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

Copy link
Contributor Author

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.
@triarius triarius merged commit 6afb8d9 into main Apr 20, 2023
@triarius triarius deleted the triarius/clean-up-generation branch April 20, 2023 11:57
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