Generate stringer files automatically #841

Merged
g4s8 merged 6 commits from 543-stringer-generate into main 2021-11-08 08:38:55 -06:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 0cbbc1dc99 - Show all commits

View File

@ -117,6 +117,10 @@ jobs:
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install libgit2 build dependencies
run: |
git submodule update --init
sudo apt-get install -y --no-install-recommends libssh2-1-dev
lhchavez commented 2021-11-08 08:27:42 -06:00 (Migrated from github.com)
Review
        sudo apt-get install -y --no-install-recommends libssh2-1-dev
        go install golang.org/x/tools/cmd/stringer@latest

haha, stringer wasn't installed! (and we may need to tweak PATH unless GH does it for us)

```suggestion sudo apt-get install -y --no-install-recommends libssh2-1-dev go install golang.org/x/tools/cmd/stringer@latest ``` haha, `stringer` wasn't installed! (and we may need to tweak `PATH` unless GH does it for us)
- name: Generate files
run: make generate
lhchavez commented 2021-11-08 07:55:26 -06:00 (Migrated from github.com)
Review
    - 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).

```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).
- name: Check nothing changed