diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json deleted file mode 100644 index b17aa5c6..00000000 --- a/Godeps/Godeps.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "ImportPath": "github.com/yudai/gotty", - "GoVersion": "go1.9", - "GodepVersion": "v79", - "Deps": [ - { - "ImportPath": "github.com/NYTimes/gziphandler", - "Rev": "967539e5e271a2bc9b3dcb1285078a1b1df105ae" - }, - { - "ImportPath": "github.com/codegangsta/cli", - "Comment": "v1.19.1", - "Rev": "0bdeddeeb0f650497d603c4ad7b20cfe685682f6" - }, - { - "ImportPath": "github.com/elazarl/go-bindata-assetfs", - "Rev": "d5cac425555ca5cf00694df246e04f05e6a55150" - }, - { - "ImportPath": "github.com/fatih/structs", - "Rev": "a9f7daa9c2729e97450c2da2feda19130a367d8f" - }, - { - "ImportPath": "github.com/gorilla/websocket", - "Rev": "b6ab76f1fe9803ee1d59e7e5b2a797c1fe897ce5" - }, - { - "ImportPath": "github.com/hashicorp/go-multierror", - "Rev": "56912fb08d85084aa318edcf2bba735b97cf35c5" - }, - { - "ImportPath": "github.com/kr/pty", - "Comment": "release.r56-28-g5cf931e", - "Rev": "5cf931ef8f76dccd0910001d74a58a7fca84a83d" - }, - { - "ImportPath": "github.com/pkg/errors", - "Comment": "v0.8.0-2-g248dadf", - "Rev": "248dadf4e9068a0b3e79f02ed0a610d935de5302" - }, - { - "ImportPath": "github.com/yudai/hcl", - "Rev": "5fa2393b3552119bf33a69adb1402a1160cba23d" - }, - { - "ImportPath": "github.com/yudai/hcl/hcl", - "Rev": "5fa2393b3552119bf33a69adb1402a1160cba23d" - }, - { - "ImportPath": "github.com/yudai/hcl/json", - "Rev": "5fa2393b3552119bf33a69adb1402a1160cba23d" - } - ] -} diff --git a/Godeps/Readme b/Godeps/Readme deleted file mode 100644 index 4cdaa53d..00000000 --- a/Godeps/Readme +++ /dev/null @@ -1,5 +0,0 @@ -This directory tree is generated automatically by godep. - -Please do not edit. - -See https://github.com/tools/godep for more information. diff --git a/Makefile b/Makefile index 03265809..304dd4c0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION = 2.0.0-alpha.3 BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION) -X main.CommitID=$(GIT_COMMIT)" gotty: main.go server/*.go webtty/*.go backend/*.go Makefile - godep go build ${BUILD_OPTIONS} + go build ${BUILD_OPTIONS} .PHONY: asset asset: bindata/static/js/gotty-bundle.js bindata/static/index.html bindata/static/favicon.png bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css @@ -58,7 +58,6 @@ js/node_modules/webpack: npm install tools: - go get github.com/tools/godep go get github.com/mitchellh/gox go get github.com/tcnksm/ghr go get github.com/jteeuwen/go-bindata/... diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..d1483de3 --- /dev/null +++ b/go.mod @@ -0,0 +1,16 @@ +module github.com/yudai/gotty + +go 1.16 + +require ( + github.com/NYTimes/gziphandler v0.0.0-20170804200234-967539e5e271 + github.com/codegangsta/cli v1.19.1 + github.com/elazarl/go-bindata-assetfs v0.0.0-20150813044622-d5cac425555c + github.com/fatih/structs v0.0.0-20150526064352-a9f7daa9c272 + github.com/gorilla/websocket v0.0.0-20150811171432-b6ab76f1fe98 + github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 // indirect + github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76 + github.com/pkg/errors v0.8.1-0.20161029093637-248dadf4e906 + github.com/stretchr/testify v1.7.0 // indirect + github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..4fcf8e6f --- /dev/null +++ b/go.sum @@ -0,0 +1,28 @@ +github.com/NYTimes/gziphandler v0.0.0-20170804200234-967539e5e271 h1:rEXtCtsQnEC8QeWYL2BpqmOuondcABYaKHux21ddDns= +github.com/NYTimes/gziphandler v0.0.0-20170804200234-967539e5e271/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/codegangsta/cli v1.19.1 h1:+wkU9+nidApJ051CVhVGnj5li64qOfLPz7eZMn2DPXw= +github.com/codegangsta/cli v1.19.1/go.mod h1:/qJNoX69yVSKu5o4jLyXAENLRyk1uhi7zkbQ3slBdOA= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/elazarl/go-bindata-assetfs v0.0.0-20150813044622-d5cac425555c h1:Knqh8y6EeTJQ3FZsqdRq7XfB7/RimWQjBtO4YRzUgcE= +github.com/elazarl/go-bindata-assetfs v0.0.0-20150813044622-d5cac425555c/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4= +github.com/fatih/structs v0.0.0-20150526064352-a9f7daa9c272 h1:0fRL8zAP1oZiyz+nKKlJsW7yAIHeIjMOCr4fmGximHk= +github.com/fatih/structs v0.0.0-20150526064352-a9f7daa9c272/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/gorilla/websocket v0.0.0-20150811171432-b6ab76f1fe98 h1:VQR6w4PocLvhbzu1AtDRjW0RXe1gntyKTX2JYYX28kI= +github.com/gorilla/websocket v0.0.0-20150811171432-b6ab76f1fe98/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 h1:cUIqw6AGGDeIa1KYdG1mLl/bX+WGDbvZJ+dhb2tprxo= +github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= +github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76 h1:i5TIRQpbCg4aJMUtVHIhkQnSw++Z405Z5pzqHqeNkdU= +github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/pkg/errors v0.8.1-0.20161029093637-248dadf4e906 h1:BKfCEBHnHoXswNe0Btj/zOfiyn40z6qOti8SeLbQgdM= +github.com/pkg/errors v0.8.1-0.20161029093637-248dadf4e906/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552 h1:tjsK9T2IA3d2FFNxzDP7AJf+EXhyuPd7PB4Z2HrtAoc= +github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552/go.mod h1:hg0ZaCmQL3rze1cH8Fh2g0a9q8vQs0uN8ESpePEwSEw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/vendor/github.com/codegangsta/cli/generate-flag-types b/vendor/github.com/codegangsta/cli/generate-flag-types old mode 100755 new mode 100644 diff --git a/vendor/github.com/codegangsta/cli/runtests b/vendor/github.com/codegangsta/cli/runtests old mode 100755 new mode 100644 diff --git a/vendor/github.com/kr/pty/types.go b/vendor/github.com/kr/pty/types.go deleted file mode 100644 index 5aecb6bc..00000000 --- a/vendor/github.com/kr/pty/types.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build ignore - -package pty - -import "C" - -type ( - _C_int C.int - _C_uint C.uint -) diff --git a/vendor/github.com/kr/pty/types_freebsd.go b/vendor/github.com/kr/pty/types_freebsd.go deleted file mode 100644 index ce3eb951..00000000 --- a/vendor/github.com/kr/pty/types_freebsd.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build ignore - -package pty - -/* -#include -#include -*/ -import "C" - -const ( - _C_SPECNAMELEN = C.SPECNAMELEN /* max length of devicename */ -) - -type fiodgnameArg C.struct_fiodgname_arg diff --git a/vendor/modules.txt b/vendor/modules.txt new file mode 100644 index 00000000..519495a6 --- /dev/null +++ b/vendor/modules.txt @@ -0,0 +1,31 @@ +# github.com/NYTimes/gziphandler v0.0.0-20170804200234-967539e5e271 +## explicit +github.com/NYTimes/gziphandler +# github.com/codegangsta/cli v1.19.1 +## explicit +github.com/codegangsta/cli +# github.com/elazarl/go-bindata-assetfs v0.0.0-20150813044622-d5cac425555c +## explicit +github.com/elazarl/go-bindata-assetfs +# github.com/fatih/structs v0.0.0-20150526064352-a9f7daa9c272 +## explicit +github.com/fatih/structs +# github.com/gorilla/websocket v0.0.0-20150811171432-b6ab76f1fe98 +## explicit +github.com/gorilla/websocket +# github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 +## explicit +github.com/hashicorp/go-multierror +# github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76 +## explicit +github.com/kr/pty +# github.com/pkg/errors v0.8.1-0.20161029093637-248dadf4e906 +## explicit +github.com/pkg/errors +# github.com/stretchr/testify v1.7.0 +## explicit +# github.com/yudai/hcl v0.0.0-20151013225006-5fa2393b3552 +## explicit +github.com/yudai/hcl +github.com/yudai/hcl/hcl +github.com/yudai/hcl/json