From 76dd2321ecd8c54f7a67fe092630d9c84e910104 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Mon, 14 Sep 2020 16:47:01 +0300 Subject: [PATCH] [cleanup] Remove various unused files. --- .travis.yml | 10 -- Makefile | 48 --------- appveyor.yml | 34 ------- glide.lock | 270 --------------------------------------------------- glide.yaml | 44 --------- 5 files changed, 406 deletions(-) delete mode 100644 .travis.yml delete mode 100644 Makefile delete mode 100644 appveyor.yml delete mode 100644 glide.lock delete mode 100644 glide.yaml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f62007..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -language: go - -go: - - 1.9.x - -install: make deps -script: make all -notifications: - email: false diff --git a/Makefile b/Makefile deleted file mode 100644 index 63fe34e..0000000 --- a/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -.PHONY: all build deps image release test - -help: ## Show this help. - @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) - -all: deps test build ## Run tests and build the binary. - -os = darwin -arch = amd64 - -build: test - @echo "Making netlifyctl for $(os)/$(arch)" - GOOS=$(os) GOARCH=$(arch) CGO_ENABLED=0 go build -ldflags "-X github.com/netlify/netlifyctl/commands.Version=${TAG} -X github.com/netlify/netlifyctl/commands.SHA=`git rev-parse HEAD`" - -build_linux: override os=linux ## Build the binary for Linux hosts. -build_linux: build - -build_windows: override os=windows ## Build the binary for Windows hosts. -build_windows: build - -deps: ## Install dependencies. - go get -u github.com/Masterminds/glide && glide install - -package: build ## Package binary for the default OS. - tar -czf netlifyctl-$(os)-$(arch).tar.gz netlifyctl - -package_linux: override os=linux ## Package Linux binary. -package_linux: package - -package_windows: override os=windows ## Package Windows binary. -package_windows: package - -release: ## Upload release to GitHub releases. - mkdir -p builds/darwin-${TAG} - GOOS=darwin GOARCH=$(arch) CGO_ENABLED=0 go build -ldflags "-X github.com/netlify/netlifyctl/commands.Version=${TAG} -X github.com/netlify/netlifyctl/commands.SHA=`git rev-parse HEAD`" -o builds/darwin-${TAG}/netlifyctl - mkdir -p builds/linux-${TAG} - GOOS=linux GOARCH=$(arch) CGO_ENABLED=0 go build -ldflags "-X github.com/netlify/netlifyctl/commands.Version=${TAG} -X github.com/netlify/netlifyctl/commands.SHA=`git rev-parse HEAD`" -o builds/linux-${TAG}/netlifyctl - mkdir -p builds/windows-${TAG} - GOOS=windows GOARCH=$(arch) CGO_ENABLED=0 go build -ldflags "-X github.com/netlify/netlifyctl/commands.Version=${TAG} -X github.com/netlify/netlifyctl/commands.SHA=`git rev-parse HEAD`" -o builds/windows-${TAG}/netlifyctl.exe - @rm -rf releases/${TAG} - mkdir -p releases/${TAG} - tar -czf releases/${TAG}/netlifyctl-darwin-$(arch)-${TAG}.tar.gz -C builds/darwin-${TAG} netlifyctl - tar -czf releases/${TAG}/netlifyctl-linux-$(arch)-${TAG}.tar.gz -C builds/linux-${TAG} netlifyctl - zip -j releases/${TAG}/netlifyctl-windows-$(arch)-${TAG}.zip builds/windows-${TAG}/netlifyctl.exe - @hub release create -a releases/${TAG}/netlifyctl-darwin-$(arch)-${TAG}.tar.gz -a releases/${TAG}/netlifyctl-linux-$(arch)-${TAG}.tar.gz -a releases/${TAG}/netlifyctl-windows-$(arch)-${TAG}.zip v${TAG} - -test: ## Run tests. - go test -v `go list ./... | grep -v /vendor/` diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index dda608a..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: "{build}" - -# Source Config - -clone_folder: c:\gopath\src\github.com\netlify\netlifyctl - -# Build host - -environment: - GOPATH: c:\gopath - DEPTESTBYPASS501: 1 - GOVERSION: 1.10 - -init: - - git config --global core.autocrlf input - -# Build - -install: - # Install the specific Go version. - - rmdir c:\go /s /q - - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi - - msiexec /i go%GOVERSION%.windows-amd64.msi /q - - set Path=c:\go\bin;c:\gopath\bin;C:\Program Files (x86)\Bazaar\;C:\Program Files\Mercurial\%Path% - - go version - - go env - - go get -u github.com/Masterminds/glide - - glide install - -build: false -deploy: false - -test_script: - - go test -v ./... diff --git a/glide.lock b/glide.lock deleted file mode 100644 index 0b83eac..0000000 --- a/glide.lock +++ /dev/null @@ -1,270 +0,0 @@ -hash: 96ee2ffd0a3f2f50c6af949d0d3d749976390bde7f9f8b658f0e622837f6362d -updated: 2018-06-09T11:15:34.079536839-07:00 -imports: -- name: github.com/asaskevich/govalidator - version: ca5f9e638c83bac66bfac70ded5bded1503135a7 -- name: github.com/Azure/go-autorest - version: 809ed2ef5c4c9a60c3c2f3aa9cc11f3a7c2ce59d - subpackages: - - autorest - - autorest/adal - - autorest/date -- name: github.com/briandowns/spinner - version: b2e0b668d1ae4a3959df7d1ed2c18927d65ad1e1 - repo: https://github.com/calavera/spinner -- name: github.com/BurntSushi/toml - version: a368813c5e648fee92e5f6c30e3944ff9d5e8895 -- name: github.com/cenkalti/backoff - version: 61ba96c4d1002f22e06acb8e34a7650611125a63 -- name: github.com/dgrijalva/jwt-go - version: d2709f9f1f31ebcda9651b03077758c1f3a0018c -- name: github.com/fatih/color - version: 5df930a27be2502f99b292b7cc09ebad4d0891f4 -- name: github.com/fhs/go-netrc - version: 4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43 - subpackages: - - netrc -- name: github.com/github/hub - version: 5ce945e74713efe782cc10dc2fc08ea0b4fe099d - subpackages: - - cmd - - git - - github - - ui - - utils - - version -- name: github.com/go-openapi/analysis - version: 8ed83f2ea9f00f945516462951a288eaa68bf0d6 -- name: github.com/go-openapi/errors - version: 03cfca65330da08a5a440053faf994a3c682b5bf -- name: github.com/go-openapi/jsonpointer - version: 779f45308c19820f1a69e9a4cd965f496e0da10f -- name: github.com/go-openapi/jsonreference - version: 36d33bfe519efae5632669801b180bf1a245da3b -- name: github.com/go-openapi/loads - version: a80dea3052f00e5f032e860dd7355cd0cc67e24d -- name: github.com/go-openapi/runtime - version: 96511efa8f2190cf4dd04412c61a1a96546b36d9 - subpackages: - - client - - logger - - middleware - - middleware/denco - - middleware/header - - middleware/untyped - - security -- name: github.com/go-openapi/spec - version: 48c2a7185575f9103a5a3863eff950bb776899d2 -- name: github.com/go-openapi/strfmt - version: 610b6cacdcde6852f4de68998bd20ce1dac85b22 -- name: github.com/go-openapi/swag - version: f3f9494671f93fcff853e3c6e9e948b3eb71e590 -- name: github.com/go-openapi/validate - version: dc8a684882cf70c9a529887104340f44e0e138e5 -- name: github.com/golang/protobuf - version: ab9f9a6dab164b7d1246e0e688b0ab7b94d8553e - subpackages: - - proto -- name: github.com/google/go-github - version: 35c06c17eff17d6ba18c6d8c5a84827f8ecf8679 - subpackages: - - github -- name: github.com/google/go-querystring - version: 53e6ce116135b80d037921a7fdd5138cf32d7a8a - subpackages: - - query -- name: github.com/inconshreveable/mousetrap - version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75 -- name: github.com/jbenet/go-context - version: d14ea06fba99483203c19d92cfcd13ebe73135f4 - subpackages: - - io -- name: github.com/jingweno/go-sawyer - version: 1999ae5763d678f3ce1112cf1fda7c7e9cf2aadf - subpackages: - - hypermedia - - mediaheader - - mediatype -- name: github.com/jtacoma/uritemplates - version: 307ae868f90f4ee1b73ebe4596e0394237dacce8 -- name: github.com/kballard/go-shellquote - version: cd60e84ee657ff3dc51de0b4f55dd299a3e136f2 -- name: github.com/mailru/easyjson - version: 2a92e673c9a6302dd05c3a691ae1f24aef46457d - subpackages: - - buffer - - jlexer - - jwriter -- name: github.com/mattn/go-colorable - version: 5411d3eea5978e6cdc258b30de592b60df6aba96 - repo: https://github.com/mattn/go-colorable -- name: github.com/mattn/go-isatty - version: 57fdcb988a5c543893cc61bce354a6e24ab70022 - repo: https://github.com/mattn/go-isatty -- name: github.com/mitchellh/go-homedir - version: b8bc1bf767474819792c23f32d8286a45736f1c6 -- name: github.com/mitchellh/mapstructure - version: db1efb556f84b25a0a13a04aad883943538ad2e0 -- name: github.com/netlify/open-api - version: 09203f5c1873bd4124acdd7929651cb29d2bc3c2 - vcs: git - subpackages: - - go/models - - go/plumbing - - go/plumbing/operations - - go/porcelain - - go/porcelain/context - - go/porcelain/http -- name: github.com/octokit/go-octokit - version: 812e91dfbd64051c1ec72c48feda0278727e8a4e - subpackages: - - octokit -- name: github.com/pkg/errors - version: 816c9085562cd7ee03e7f8188a1cfd942858cded -- name: github.com/PuerkitoBio/purell - version: fd18e053af8a4ff11039269006e8037ff374ce0e -- name: github.com/PuerkitoBio/urlesc - version: de5bf2ad457846296e2031421a34e2568e304e35 -- name: github.com/rsc/goversion - version: b792656d10497b6b61ef55ce8e3bb725965bda2c - subpackages: - - version -- name: github.com/sergi/go-diff - version: 2fc9cd33b5f86077aa3e0f442fa0476a9fa9a1dc - subpackages: - - diffmatchpatch -- name: github.com/sirupsen/logrus - version: d26492970760ca5d33129d2d799e34be5c4782eb -- name: github.com/skratchdot/open-golang - version: 75fb7ed4208cf72d323d7d02fd1a5964a7a9073c - subpackages: - - open -- name: github.com/spf13/cobra - version: fcd0c5a1df88f5d6784cb4feead962c3f3d0b66c -- name: github.com/spf13/pflag - version: 9ff6c6923cfffbcd502984b8e0c80539a94968b7 -- name: github.com/src-d/gcfg - version: f187355171c936ac84a82793659ebb4936bc1c23 - subpackages: - - scanner - - token - - types -- name: github.com/xanzy/go-gitlab - version: 8a20d674959fea44da3d253bdd883f2c3d280310 -- name: github.com/xanzy/ssh-agent - version: ba9c9e33906f58169366275e3450db66139a31a9 -- name: golang.org/x/crypto - version: 687d4b818545e443c8ba223cbef20b1721afd4db - subpackages: - - curve25519 - - ed25519 - - ed25519/internal/edwards25519 - - ssh - - ssh/agent - - ssh/knownhosts - - ssh/terminal -- name: golang.org/x/net - version: d379faa25cbdc04d653984913a2ceb43b0bc46d7 - subpackages: - - context - - context/ctxhttp - - idna -- name: golang.org/x/oauth2 - version: 9a379c6b3e95a790ffc43293c2a78dee0d7b6e20 - subpackages: - - internal -- name: golang.org/x/sys - version: 1e2299c37cc91a509f1b12369872d27be0ce98a6 - subpackages: - - unix - - windows -- name: golang.org/x/text - version: f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - subpackages: - - transform - - unicode/norm - - width -- name: google.golang.org/appengine - version: d9a072cfa7b9736e44311ef77b3e09d804bfa599 - subpackages: - - internal - - internal/base - - internal/datastore - - internal/log - - internal/remote_api - - internal/urlfetch - - urlfetch -- name: gopkg.in/mgo.v2 - version: 3f83fa5005286a7fe593b055f0d7771a7dce4655 - subpackages: - - bson - - internal/json -- name: gopkg.in/src-d/go-billy.v3 - version: c329b7bc7b9d24905d2bc1b85bfa29f7ae266314 - subpackages: - - helper/chroot - - helper/polyfill - - osfs - - util -- name: gopkg.in/src-d/go-git.v4 - version: f9879dd043f84936a1f8acb8a53b74332a7ae135 - subpackages: - - config - - internal/revision - - plumbing - - plumbing/cache - - plumbing/filemode - - plumbing/format/config - - plumbing/format/diff - - plumbing/format/gitignore - - plumbing/format/idxfile - - plumbing/format/index - - plumbing/format/objfile - - plumbing/format/packfile - - plumbing/format/pktline - - plumbing/object - - plumbing/protocol/packp - - plumbing/protocol/packp/capability - - plumbing/protocol/packp/sideband - - plumbing/revlist - - plumbing/storer - - plumbing/transport - - plumbing/transport/client - - plumbing/transport/file - - plumbing/transport/git - - plumbing/transport/http - - plumbing/transport/internal/common - - plumbing/transport/server - - plumbing/transport/ssh - - storage - - storage/filesystem - - storage/filesystem/internal/dotgit - - storage/memory - - utils/binary - - utils/diff - - utils/ioutil - - utils/merkletrie - - utils/merkletrie/filesystem - - utils/merkletrie/index - - utils/merkletrie/internal/frame - - utils/merkletrie/noder -- name: gopkg.in/warnings.v0 - version: 8a331561fe74dadba6edfc59f3be66c22c3b065d -- name: gopkg.in/yaml.v1 - version: 9f9df34309c04878acc86042b16630b0f696e1de -- name: gopkg.in/yaml.v2 - version: a3f3340b5840cee44f372bddb5880fcbc419b46a -testImports: -- name: github.com/davecgh/go-spew - version: 8991bc29aa16c548c550c7ff78260e27b9ab7c73 - subpackages: - - spew -- name: github.com/pmezard/go-difflib - version: 792786c7400a136282c1664665ae0a8db921c6c2 - subpackages: - - difflib -- name: github.com/stretchr/testify - version: c679ae2cc0cb27ec3293fea7e254e47386f05d69 - subpackages: - - assert - - require diff --git a/glide.yaml b/glide.yaml deleted file mode 100644 index ab46443..0000000 --- a/glide.yaml +++ /dev/null @@ -1,44 +0,0 @@ -package: github.com/netlify/netlifyctl -import: -- package: github.com/BurntSushi/toml - version: master -- package: github.com/sirupsen/logrus - version: v0.11.0 -- package: github.com/go-openapi/errors -- package: github.com/go-openapi/runtime - version: 96511efa8f2190cf4dd04412c61a1a96546b36d9 - subpackages: - - client -- package: github.com/go-openapi/strfmt -- package: github.com/netlify/open-api - version: 09203f5c1873bd4124acdd7929651cb29d2bc3c2 - vcs: git - subpackages: - - go/models - - go/porcelain - - go/porcelain/context -- package: github.com/spf13/cobra -- package: github.com/skratchdot/open-golang -- package: github.com/mitchellh/go-homedir -- package: gopkg.in/src-d/go-git.v4 -- package: github.com/github/hub - subpackages: - - github -- package: github.com/google/go-github - version: 35c06c17eff17d6ba18c6d8c5a84827f8ecf8679 -- package: golang.org/x/sys - version: 1e2299c37cc91a509f1b12369872d27be0ce98a6 -- package: github.com/briandowns/spinner - version: b2e0b668d1ae4a3959df7d1ed2c18927d65ad1e1 - repo: https://github.com/calavera/spinner -- package: github.com/Azure/go-autorest - version: ~9.6.0 - subpackages: - - autorest -- package: github.com/pkg/errors -- package: github.com/xanzy/go-gitlab - version: 8a20d674959fea44da3d253bdd883f2c3d280310 -testImport: -- package: github.com/stretchr/testify - subpackages: - - require