fix: remove go-bindata module dependency

This commit is contained in:
Jan De Dobbeleer 2020-12-25 10:12:28 +01:00 committed by Jan De Dobbeleer
parent 0e5e65d9e3
commit bea4799f9d
6 changed files with 5 additions and 6 deletions

View file

@ -29,7 +29,7 @@ jobs:
- name: Bundle init scripts
run: |
go get -u github.com/kevinburke/go-bindata/...
go-bindata -o init.go init/
go generate
- name: Golang CI
uses: golangci/golangci-lint-action@v2
with:

View file

@ -69,7 +69,7 @@ jobs:
- name: Bundle init scripts
run: |
go get -u github.com/kevinburke/go-bindata/...
go-bindata -o init.go init/
go generate
- name: Build
id: build
run: go build -o ${{ matrix.ARTIFACT }} -ldflags="-X 'main.Version=${{ needs.release.outputs.version }}'"

View file

@ -74,7 +74,7 @@ First, we need to package the init scripts:
```shell
go get -u github.com/kevinburke/go-bindata/...
go-bindata -o init.go init/
go generate
```
Next, build the app and validate the changes:

1
go.mod
View file

@ -10,7 +10,6 @@ require (
github.com/distatus/battery v0.10.1-0.20200722221337-7e1bf2bbb15c
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/gookit/color v1.3.1
github.com/kevinburke/go-bindata v3.22.0+incompatible // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/shirou/gopsutil v2.20.9+incompatible

2
go.sum
View file

@ -16,8 +16,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI=
github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/kevinburke/go-bindata v3.22.0+incompatible h1:/JmqEhIWQ7GRScV0WjX/0tqBrC5D21ALg0H0U/KZ/ts=
github.com/kevinburke/go-bindata v3.22.0+incompatible/go.mod h1:/pEEZ72flUW2p0yi30bslSp9YqD9pysLxunQDdb2CPM=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=

View file

@ -1,3 +1,5 @@
//go:generate go-bindata -o init.go init/
package main
import (