chore: go 1.10 and fix linters
parent
df453ca634
commit
5c188d9dd4
|
@ -2,7 +2,7 @@ version: 2
|
||||||
jobs:
|
jobs:
|
||||||
linting:
|
linting:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -16,6 +16,7 @@ jobs:
|
||||||
name: Run linting
|
name: Run linting
|
||||||
command: |
|
command: |
|
||||||
gometalinter --exclude="rice-box.go" \
|
gometalinter --exclude="rice-box.go" \
|
||||||
|
--deadline=300s \
|
||||||
-D goconst \
|
-D goconst \
|
||||||
-D gocyclo \
|
-D gocyclo \
|
||||||
-D vetshadow \
|
-D vetshadow \
|
||||||
|
@ -24,7 +25,7 @@ jobs:
|
||||||
-D gas
|
-D gas
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -38,7 +39,7 @@ jobs:
|
||||||
command: go build
|
command: go build
|
||||||
deploy:
|
deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
16
rice-box.go
16
rice-box.go
|
@ -127,7 +127,7 @@ func init() {
|
||||||
// define dirs
|
// define dirs
|
||||||
dir1 := &embedded.EmbeddedDir{
|
dir1 := &embedded.EmbeddedDir{
|
||||||
Filename: "",
|
Filename: "",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947465, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
file2, // "index.html"
|
file2, // "index.html"
|
||||||
fileu, // "sw.js"
|
fileu, // "sw.js"
|
||||||
|
@ -136,7 +136,7 @@ func init() {
|
||||||
}
|
}
|
||||||
dir3 := &embedded.EmbeddedDir{
|
dir3 := &embedded.EmbeddedDir{
|
||||||
Filename: "static",
|
Filename: "static",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947465, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
fileq, // "static/manifest.json"
|
fileq, // "static/manifest.json"
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ func init() {
|
||||||
}
|
}
|
||||||
dir4 := &embedded.EmbeddedDir{
|
dir4 := &embedded.EmbeddedDir{
|
||||||
Filename: "static/css",
|
Filename: "static/css",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947464, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
file5, // "static/css/app.75a7f41b85cdb16097dd425ffc55c1f5.css"
|
file5, // "static/css/app.75a7f41b85cdb16097dd425ffc55c1f5.css"
|
||||||
|
|
||||||
|
@ -152,12 +152,12 @@ func init() {
|
||||||
}
|
}
|
||||||
dir6 := &embedded.EmbeddedDir{
|
dir6 := &embedded.EmbeddedDir{
|
||||||
Filename: "static/img",
|
Filename: "static/img",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947464, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{},
|
ChildFiles: []*embedded.EmbeddedFile{},
|
||||||
}
|
}
|
||||||
dir7 := &embedded.EmbeddedDir{
|
dir7 := &embedded.EmbeddedDir{
|
||||||
Filename: "static/img/icons",
|
Filename: "static/img/icons",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947464, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
file8, // "static/img/icons/android-chrome-192x192.png"
|
file8, // "static/img/icons/android-chrome-192x192.png"
|
||||||
file9, // "static/img/icons/android-chrome-512x512.png"
|
file9, // "static/img/icons/android-chrome-512x512.png"
|
||||||
|
@ -177,7 +177,7 @@ func init() {
|
||||||
}
|
}
|
||||||
dirl := &embedded.EmbeddedDir{
|
dirl := &embedded.EmbeddedDir{
|
||||||
Filename: "static/js",
|
Filename: "static/js",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947465, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
filem, // "static/js/app.e8697d002882976987f8.js"
|
filem, // "static/js/app.e8697d002882976987f8.js"
|
||||||
filen, // "static/js/app.e8697d002882976987f8.js.map"
|
filen, // "static/js/app.e8697d002882976987f8.js.map"
|
||||||
|
@ -188,7 +188,7 @@ func init() {
|
||||||
}
|
}
|
||||||
dirr := &embedded.EmbeddedDir{
|
dirr := &embedded.EmbeddedDir{
|
||||||
Filename: "static/share",
|
Filename: "static/share",
|
||||||
DirModTime: time.Unix(1517701204, 0),
|
DirModTime: time.Unix(1518947465, 0),
|
||||||
ChildFiles: []*embedded.EmbeddedFile{
|
ChildFiles: []*embedded.EmbeddedFile{
|
||||||
files, // "static/share/404.html"
|
files, // "static/share/404.html"
|
||||||
filet, // "static/share/index.html"
|
filet, // "static/share/index.html"
|
||||||
|
@ -220,7 +220,7 @@ func init() {
|
||||||
// register embeddedBox
|
// register embeddedBox
|
||||||
embedded.RegisterEmbeddedBox(`./node_modules/filebrowser-frontend/dist`, &embedded.EmbeddedBox{
|
embedded.RegisterEmbeddedBox(`./node_modules/filebrowser-frontend/dist`, &embedded.EmbeddedBox{
|
||||||
Name: `./node_modules/filebrowser-frontend/dist`,
|
Name: `./node_modules/filebrowser-frontend/dist`,
|
||||||
Time: time.Unix(1517701204, 0),
|
Time: time.Unix(1518947465, 0),
|
||||||
Dirs: map[string]*embedded.EmbeddedDir{
|
Dirs: map[string]*embedded.EmbeddedDir{
|
||||||
"": dir1,
|
"": dir1,
|
||||||
"static": dir3,
|
"static": dir3,
|
||||||
|
|
Loading…
Reference in New Issue