forked from mirror/pkger
tidy
This commit is contained in:
parent
e611253b7b
commit
ddc055cac4
|
@ -20,6 +20,5 @@ jobs:
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
go get github.com/gobuffalo/buffalo
|
|
||||||
go mod tidy -v
|
go mod tidy -v
|
||||||
go test -v -race ./...
|
go test -v -race ./...
|
||||||
|
|
|
@ -69,7 +69,7 @@ func Test_Parser_Ref_Include(t *testing.T) {
|
||||||
_, err = pkgtest.LoadFiles("/", ref, disk)
|
_, err = pkgtest.LoadFiles("/", ref, disk)
|
||||||
r.NoError(err)
|
r.NoError(err)
|
||||||
|
|
||||||
res, err := Parse(ref.Info, "github.com/gobuffalo/buffalo:/app.go")
|
res, err := Parse(ref.Info, "github.com/stretchr/testify:/go.mod")
|
||||||
|
|
||||||
r.NoError(err)
|
r.NoError(err)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func Serve() {
|
func Serve() {
|
||||||
pkger.Stat("github.com/gobuffalo/buffalo:/logo.svg")
|
pkger.Stat("github.com/stretchr/testify:/README.md")
|
||||||
dir := http.FileServer(pkger.Dir("/public"))
|
dir := http.FileServer(pkger.Dir("/public"))
|
||||||
http.ListenAndServe(":3000", dir)
|
http.ListenAndServe(":3000", dir)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue