diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 45ca3d66..95d768b3 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbdee0bf..5793b144 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}'" diff --git a/docs/docs/contributing-segment.md b/docs/docs/contributing-segment.md index d05c1a38..e8cc48e6 100644 --- a/docs/docs/contributing-segment.md +++ b/docs/docs/contributing-segment.md @@ -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: diff --git a/go.mod b/go.mod index 54f19ea4..a9f544ae 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 4a01184a..f40c6727 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/main.go b/main.go index 283e9964..c85fcd3e 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,5 @@ +//go:generate go-bindata -o init.go init/ + package main import (