Generate stringer files automatically #841
|
@ -123,6 +123,8 @@ jobs:
|
||||||
sudo apt-get install -y --no-install-recommends libssh2-1-dev
|
sudo apt-get install -y --no-install-recommends libssh2-1-dev
|
||||||
|
|||||||
go install golang.org/x/tools/cmd/stringer@latest
|
go install golang.org/x/tools/cmd/stringer@latest
|
||||||
- name: Generate files
|
- name: Generate files
|
||||||
![]()
oops, forgot this last round! otherwise ```suggestion
- name: Install libgit2 build dependencies
run: |
git submodule update --init
sudo apt-get install -y --no-install-recommends libssh2-1-dev
- name: Generate files
```
oops, forgot this last round! otherwise `make generate` will fail because CGo won't be able to find `git2.h`: https://github.com/libgit2/git2go/runs/4139740720?check_suite_focus=true (note that this depends on the suggestion that was left in `Makefile` to work correctly).
|
|||||||
run: make generate
|
run: |
|
||||||
|
export PATH=$(go env GOPATH)/bin:$PATH
|
||||||
|
make generate
|
||||||
- name: Check nothing changed
|
- name: Check nothing changed
|
||||||
run: git diff --quiet --exit-code || (echo "detected changes after generate" ; git status ; exit 1)
|
run: git diff --quiet --exit-code || (echo "detected changes after generate" ; git status ; exit 1)
|
||||||
|
|
Loading…
Reference in New Issue
haha,
stringer
wasn't installed! (and we may need to tweakPATH
unless GH does it for us)