]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
go : run `go mod tidy` before building examples + fix permissions (#296)
authorMohit Agarwal <redacted>
Thu, 22 Dec 2022 14:34:20 +0000 (20:04 +0530)
committerGitHub <redacted>
Thu, 22 Dec 2022 14:34:20 +0000 (16:34 +0200)
commit86a277f78dbcd8c7f23ebf3d6826c00e9048ce9b
tree26765cc1319edf0b4509e24a10a9becce63eda1d
parent231bebca7deaf32d268a8b207d15aa859e52dbbe
go : run `go mod tidy` before building examples + fix permissions (#296)

* run `go mod tidy` before building examples

Running `make examples` after cloning the repository gives the following
error:

```
...
[100%] Built target whisper
gmake[3]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[2]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[1]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
Build example go-model-download
Build example go-whisper
examples/go-whisper/process.go:11:2: missing go.sum entry for module providing package github.com/go-audio/wav (imported by github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper); to add:
        go get github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper
make: *** [Makefile:26: examples/go-whisper] Error 1
```

* remove executable bit from various files
17 files changed:
bindings/go/.gitignore [changed mode: 0755->0644]
bindings/go/LICENSE [changed mode: 0755->0644]
bindings/go/Makefile [changed mode: 0755->0644]
bindings/go/README.md [changed mode: 0755->0644]
bindings/go/examples/go-model-download/context.go [changed mode: 0755->0644]
bindings/go/examples/go-model-download/main.go [changed mode: 0755->0644]
bindings/go/examples/go-whisper/flags.go [changed mode: 0755->0644]
bindings/go/examples/go-whisper/main.go [changed mode: 0755->0644]
bindings/go/examples/go-whisper/process.go [changed mode: 0755->0644]
bindings/go/go.mod [changed mode: 0755->0644]
bindings/go/pkg/whisper/consts.go [changed mode: 0755->0644]
bindings/go/pkg/whisper/context.go [changed mode: 0755->0644]
bindings/go/pkg/whisper/context_test.go [changed mode: 0755->0644]
bindings/go/pkg/whisper/doc.go [changed mode: 0755->0644]
bindings/go/pkg/whisper/interface.go [changed mode: 0755->0644]
bindings/go/pkg/whisper/model.go [changed mode: 0755->0644]
bindings/go/samples/jfk.wav [changed mode: 0755->0644]