Skip to content

Commit

Permalink
tools: run make generate on parser directory (pingcap#55247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 authored and hawkingrei committed Aug 8, 2024
1 parent 9dbda44 commit b5a5a13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/parser/generate_keyword/genkeyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const (
)

const (
fileStart = `// Copyright 2023 PingCAP, Inc.
fileStart = `// Code generated by genkeyword. DO NOT EDIT.
// Copyright 2023 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions pkg/parser/keywords.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/check/check-gogenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
set -euo pipefail

go generate ./...
pushd pkg/parser && make generate && popd
set +e
diffline=$(git status -s | awk '{print $2}' | xargs grep '^// Code generated .* DO NOT EDIT\.$' 2>/dev/null)
set -e
Expand Down

0 comments on commit b5a5a13

Please sign in to comment.