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

restapi generation: clean before generation so we don't leak files #3353

Merged

Conversation

zmerlynn
Copy link
Collaborator

@zmerlynn zmerlynn commented Aug 29, 2023

Without this change, if restapi generates a file previously and then you run generation again and the file is not generated, the old file will still be there. This then results in the header script adding the boilerplate a second time, resulting a diff every time.

Along the way: the boilerplate is still 2022

Note to reviewer: the second commit is the re-generation with new boilerplate.

…esn't leak files

Without this change, if `restapi` generates a file previously and then
you run generation again and the file is _not_ generated, the old file
will still be there. This then results in the `header` script adding
the boilerplate a second time, resulting a diff every time.

Along the way: the boilerplate is still 2022
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b0b38da5-cbae-43d2-824a-91ad2b7376cd

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3353/head:pr_3353 && git checkout pr_3353
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.35.0-dev-35e9c55-amd64

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gongmax, steven-supersolid, zmerlynn
Once this PR has been reviewed and has the lgtm label, please ask for approval from markmandel. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zmerlynn zmerlynn merged commit 61056b0 into googleforgames:main Sep 5, 2023
3 checks passed
@zmerlynn zmerlynn deleted the restapi-generation-should-clean branch September 5, 2023 20:56
@Kalaiselvi84 Kalaiselvi84 added kind/feature New features for Agones and removed kind/other labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New features for Agones lgtm size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants