Skip to content

Commit

Permalink
fix: drop bindata
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshack committed Sep 23, 2023
1 parent 017db6d commit 3c31208
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@ VERSION := $(shell git describe --tags 2>/dev/null)
LDFLAGS = -X main.version=$(VERSION)

build:
rm -rf bindata
go get -u github.com/shuLhan/go-bindata/...
go install github.com/shuLhan/go-bindata/v4/cmd/go-bindata@master
$$GOPATH/bin/go-bindata -pkg bindata -o bindata/bindata.go etc/*
go get ./...
go test -coverprofile=coverage.out -covermode=atomic -race $$GOPATH/src/github.com/mdshack/dbanon/src
go build -ldflags "$(LDFLAGS)" -o dbanon main.go
go test $$GOPATH/src/github.com/mdshack/dbanon/integration
rm -rf bindata

bench:
$$GOPATH/bin/go-bindata -pkg bindata -o bindata/bindata.go etc/*
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/dgraph-io/ristretto v0.1.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-github/v30 v30.1.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm
github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ1qq1U=
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
github.com/go-bindata/go-bindata v3.1.2+incompatible h1:5vjJMVhowQdPzjE1LdxyFF7YFTXg5IgGVW4gBr5IbvE=
github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo=
github.com/go-chi/chi v1.5.0/go.mod h1:REp24E+25iKvxgeTfHmdUoL5x15kBiDBlnIl5bCwe2k=
github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
Expand Down
3 changes: 0 additions & 3 deletions src/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package dbanon

import (
"errors"
"github.com/mdshack/dbanon/bindata"
"gopkg.in/yaml.v2"
"io/ioutil"
"strings"
Expand Down Expand Up @@ -30,8 +29,6 @@ func NewConfig(requested string) (*Config, error) {
var err error

switch requested {
case "magento2":
source, _ = bindata.Asset("etc/magento2.yml")
default:
source, err = ioutil.ReadFile(requested)
if err != nil {
Expand Down

0 comments on commit 3c31208

Please sign in to comment.