Commit Graph

6 Commits

Author SHA1 Message Date
Jordan Liggitt
001f81e3b3 Build go-bindata in a tmpdir 2020-03-20 18:48:33 -04:00
Daniel, Dao Quang Minh
236f41d419 Add support for go module (#2338)
* add go module support, update go-bindata ref, bump runc dep

```
go mod init github.com/google/cadvisor
go mod tidy

go get github.com/matttproud/golang_protobuf_extensions@c182affec369e30f25d3eb8cd8a478dee585ae7d
go get github.com/containerd/typeurl@5eb25027c9fdd675e1db2bd25af02f5db75027ab
```

Somehow the dependencies retrieved by `go mod init` was mismatched (maybe because
runc itself does not support go module yet ?). This fixes the dependencies retrieved
in go module, the packages bump itself seems sane.

The original go-bindata is unmaintained and is on an old revision, so our usage
of it is outdated. Changed to https://github.com/kevinburke/go-bindata which
seems to be a more official and well maintained fork, and bump to latest version.
2019-12-03 10:41:37 -08:00
Tim St. Clair
aecc17d08b
Ensure assets are rebuilt in presubmit 2016-09-19 14:56:43 -07:00
Tim St. Clair
a14b6c7a6a
Don't include modtime with built UI assets 2016-09-19 14:52:13 -07:00
Ainsley Chong
b7faf83410 Moved html template into assets directory
Reformated to .html file, and added build commands to assets.sh
2016-04-28 13:54:15 -07:00
Ainsley Chong
700c3d1d4d Separated asset files into their own folder with the correct file
formats, and added a script to build them into required .go file using
go-bindata.
2016-04-21 15:16:08 -07:00