Merge pull request #919 from MichaelMure/pack-webui

Michael Muré created

webui: pack into binary

Change summary

go.mod                 |  2 ++
go.sum                 |  4 ++++
webui/packed_assets.go | 11 ++++++-----
3 files changed, 12 insertions(+), 5 deletions(-)

Detailed changes

go.mod 🔗

@@ -38,6 +38,8 @@ require (
 	github.com/lithammer/dedent v1.1.0 // indirect
 	github.com/owenrumney/go-sarif v1.0.11 // indirect
 	github.com/segmentio/fasthash v1.0.3 // indirect
+	github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
+	github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect
 	github.com/zclconf/go-cty v1.8.4 // indirect
 	golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
 )

go.sum 🔗

@@ -252,6 +252,10 @@ github.com/shurcooL/githubv4 v0.0.0-20190601194912-068505affed7 h1:Vk3RiBQpF0Ja+
 github.com/shurcooL/githubv4 v0.0.0-20190601194912-068505affed7/go.mod h1:hAF0iLZy4td2EX+/8Tw+4nodhlMrwN3HupfaXj3zkGo=
 github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f h1:tygelZueB1EtXkPI6mQ4o9DQ0+FKW41hTbunoXZCTqk=
 github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f/go.mod h1:AuYgA5Kyo4c7HfUmvRGs/6rGlMMV/6B1bVnB9JxJEEg=
+github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 h1:bUGsEnyNbVPw06Bs80sCeARAlK8lhwqGyi6UT8ymuGk=
+github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
+github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 h1:pXY9qYc/MP5zdvqWEUH6SjNiu7VhSjuVFTFiTcphaLU=
+github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
 github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
 github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e h1:VAzdS5Nw68fbf5RZ8RDVlUvPXNU6Z3jtPCK/qvm4FoQ=
 github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=

webui/packed_assets.go 🔗

@@ -1,6 +1,7 @@
 // Code generated by vfsgen; DO NOT EDIT.
 
 //go:build !debugwebui
+// +build !debugwebui
 
 package webui
 
@@ -21,84 +22,78 @@ var WebUIAssets = func() http.FileSystem {
 	fs := vfsgen۰FS{
 		"/": &vfsgen۰DirInfo{
 			name:    "/",
-			modTime: time.Date(2021, 2, 19, 22, 21, 2, 16455900, time.UTC),
+			modTime: time.Date(2022, 11, 20, 14, 1, 52, 650910730, time.UTC),
 		},
 		"/asset-manifest.json": &vfsgen۰CompressedFileInfo{
 			name:             "asset-manifest.json",
-			modTime:          time.Date(2021, 2, 19, 22, 21, 2, 17421700, time.UTC),
-			uncompressedSize: 683,
+			modTime:          time.Date(2022, 11, 20, 14, 1, 52, 650910730, time.UTC),
+			uncompressedSize: 218,
 
-			compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x92\x3f\x4b\xc0\x30\x10\xc5\xf7\x7c\x8a\x23\xb3\xa6\xff\x90\x52\x57\xe9\x20\x88\x8b\xa3\x38\xc4\x24\xd2\xd4\x26\x96\xf6\x0a\x15\xe9\x77\x97\x94\x42\xd3\x92\x62\x1c\xef\xf2\xde\xfb\x5d\x2e\xf9\x21\x00\xf4\x43\x77\x6a\xa4\xf7\xe0\x0a\x00\x6a\xb8\xb6\xac\x75\x0d\x9a\x8c\xc8\x51\x8b\xa4\x1d\x93\xb5\x2b\x32\x51\x48\x79\x97\x33\xd1\x4c\xf6\xd3\x89\x6e\x0e\x1e\x66\x78\x1f\xe5\x5b\x85\x9b\x77\x98\x2c\x6a\xa3\x6e\xc3\xdc\xc3\xa9\x28\xab\xb4\x2a\x25\xf7\xc8\x27\x77\x60\x82\xab\x04\x7f\x86\x5d\x9d\xb3\x3c\xcd\x0a\x2e\xde\xcb\xfd\x92\xc7\xbc\x90\x22\x26\x26\x30\xda\x95\x6a\x8b\xd3\x56\xaa\x99\x35\x68\xba\xd5\xe7\x95\x51\xbc\xa7\xc7\x87\xfa\xf9\xa5\x66\x38\x63\x04\xd7\x57\x13\x80\xc5\x21\xa8\xb2\x38\x7c\xf7\x5f\xda\xa2\xdb\xc2\xeb\x99\xfa\xd7\xe3\xfc\x73\x69\x17\x7f\x8c\x00\xbc\x91\xe5\x37\x00\x00\xff\xff\xaa\x98\x32\x64\xab\x02\x00\x00"),
+			compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xaa\xe6\x52\x50\x50\x4a\xcb\xcc\x49\x2d\x56\xb2\x52\x00\x71\x14\x14\x94\x72\x13\x33\xf3\xf4\xb2\x40\x02\x4a\xfa\xc5\x25\x89\x25\x99\xc9\xfa\x59\xc5\xfa\x60\x51\xb3\x94\x54\xa3\x14\x43\x93\x44\x90\xb4\x0e\x44\x75\x66\x5e\x4a\x6a\x85\x5e\x46\x49\x6e\x0e\x58\x03\x12\x57\x07\xc9\x38\x24\x8d\x7a\xb9\x89\x05\x04\xcc\x06\x2b\xe1\x52\x50\xa8\x05\x19\xa1\x94\x9a\x57\x52\x54\x59\x90\x9f\x99\x57\x02\x72\x53\x34\xc4\x54\x3c\x0e\xe3\x52\x50\x88\xe5\xaa\x05\x04\x00\x00\xff\xff\x4f\x3f\x92\xb2\xda\x00\x00\x00"),
 		},
 		"/favicon.ico": &vfsgen۰CompressedFileInfo{
 			name:             "favicon.ico",
-			modTime:          time.Date(2021, 2, 15, 2, 16, 19, 225569600, time.UTC),
+			modTime:          time.Date(2022, 11, 20, 14, 1, 13, 273988216, time.UTC),
 			uncompressedSize: 32988,