Skip to content

Commit

Permalink
chore: simplify go generate in examples (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored May 4, 2024
1 parent f24ae88 commit 769632a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/check-generate
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash
set -exuo pipefail
export GO111MODULE=on
echo Generating in root
echo Generating code
go generate ./...
echo Swithcing to _examples and generating again
cd _examples && go generate ./...
if [[ $(git --no-pager diff) ]] ; then
echo "you need to run "go generate ./..." and commit the changes"
git --no-pager diff
Expand Down
3 changes: 0 additions & 3 deletions generate_examples.sh

This file was deleted.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

//go:generate sh generate_examples.sh
//go:generate sh -c "cd _examples && go generate ./..."

import (
"bytes"
Expand Down

0 comments on commit 769632a

Please sign in to comment.