From 1020898dd6af919bfbbfb77e48610c12c09919d7 Mon Sep 17 00:00:00 2001 From: in-void Date: Tue, 31 Jan 2023 10:05:54 +0100 Subject: [PATCH] vendor licenses --- .gitignore | 1 + Makefile | 6 +- licenses.json | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++ licenses.tpl | 9 ++ 4 files changed, 253 insertions(+), 1 deletion(-) create mode 100644 licenses.json create mode 100644 licenses.tpl diff --git a/.gitignore b/.gitignore index 5f35fb9..9758ec4 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ # Dependency directories (remove the comment below to include it) # vendor/ +licenses-errors /deployments/api/api.env diff --git a/Makefile b/Makefile index 8773f0c..9e7c061 100644 --- a/Makefile +++ b/Makefile @@ -25,4 +25,8 @@ test: ## run unit tests tests-e2e: ## run end to end tests - go test ./tests/... \ No newline at end of file + go test ./tests/... + + +vendor-licenses: ## report vendor licenses + go-licenses report ./cmd/api --template licenses.tpl > licenses.json 2> licenses-errors \ No newline at end of file diff --git a/licenses.json b/licenses.json new file mode 100644 index 0000000..00c810f --- /dev/null +++ b/licenses.json @@ -0,0 +1,238 @@ +[ + { + "package": "cloud.google.com/go", + "license": "Apache-2.0" + }, + { + "package": "cloud.google.com/go/firestore", + "license": "Apache-2.0" + }, + { + "package": "cloud.google.com/go/storage", + "license": "Apache-2.0" + }, + { + "package": "firebase.google.com/go", + "license": "Apache-2.0" + }, + { + "package": "github.com/aws/aws-sdk-go", + "license": "Apache-2.0" + }, + { + "package": "github.com/aws/aws-sdk-go/internal/sync/singleflight", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/cespare/xxhash/v2", + "license": "MIT" + }, + { + "package": "github.com/dgryski/go-rendezvous", + "license": "MIT" + }, + { + "package": "github.com/doug-martin/goqu/v9", + "license": "MIT" + }, + { + "package": "github.com/fsnotify/fsnotify", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/gin-contrib/cors", + "license": "MIT" + }, + { + "package": "github.com/gin-contrib/sse", + "license": "MIT" + }, + { + "package": "github.com/gin-gonic/gin", + "license": "MIT" + }, + { + "package": "github.com/go-playground/locales", + "license": "MIT" + }, + { + "package": "github.com/go-playground/universal-translator", + "license": "MIT" + }, + { + "package": "github.com/go-playground/validator/v10", + "license": "MIT" + }, + { + "package": "github.com/go-redis/redis/v8", + "license": "BSD-2-Clause" + }, + { + "package": "github.com/go-sql-driver/mysql", + "license": "MPL-2.0" + }, + { + "package": "github.com/golang/groupcache/lru", + "license": "Apache-2.0" + }, + { + "package": "github.com/golang/protobuf", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/google/go-cmp/cmp", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/google/uuid", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/googleapis/gax-go/v2", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/gorilla/websocket", + "license": "BSD-2-Clause" + }, + { + "package": "github.com/hashicorp/hcl", + "license": "MPL-2.0" + }, + { + "package": "github.com/jinzhu/inflection", + "license": "MIT" + }, + { + "package": "github.com/jinzhu/now", + "license": "MIT" + }, + { + "package": "github.com/jmespath/go-jmespath", + "license": "Apache-2.0" + }, + { + "package": "github.com/leodido/go-urn", + "license": "MIT" + }, + { + "package": "github.com/magiconair/properties", + "license": "BSD-2-Clause" + }, + { + "package": "github.com/mattn/go-isatty", + "license": "MIT" + }, + { + "package": "github.com/mitchellh/mapstructure", + "license": "MIT" + }, + { + "package": "github.com/pelletier/go-toml", + "license": "Apache-2.0" + }, + { + "package": "github.com/pkg/errors", + "license": "BSD-2-Clause" + }, + { + "package": "github.com/sirupsen/logrus", + "license": "MIT" + }, + { + "package": "github.com/spf13/afero", + "license": "Apache-2.0" + }, + { + "package": "github.com/spf13/cast", + "license": "MIT" + }, + { + "package": "github.com/spf13/jwalterweatherman", + "license": "MIT" + }, + { + "package": "github.com/spf13/pflag", + "license": "BSD-3-Clause" + }, + { + "package": "github.com/spf13/viper", + "license": "MIT" + }, + { + "package": "github.com/subosito/gotenv", + "license": "MIT" + }, + { + "package": "github.com/twofas/2fas-server", + "license": "GPL-3.0" + }, + { + "package": "github.com/ugorji/go/codec", + "license": "MIT" + }, + { + "package": "go.opencensus.io", + "license": "Apache-2.0" + }, + { + "package": "golang.org/x/crypto/sha3", + "license": "BSD-3-Clause" + }, + { + "package": "golang.org/x/net", + "license": "BSD-3-Clause" + }, + { + "package": "golang.org/x/oauth2", + "license": "BSD-3-Clause" + }, + { + "package": "golang.org/x/sys", + "license": "BSD-3-Clause" + }, + { + "package": "golang.org/x/text", + "license": "BSD-3-Clause" + }, + { + "package": "google.golang.org/api", + "license": "BSD-3-Clause" + }, + { + "package": "google.golang.org/api/internal/third_party/uritemplates", + "license": "BSD-3-Clause" + }, + { + "package": "google.golang.org/genproto/googleapis", + "license": "Apache-2.0" + }, + { + "package": "google.golang.org/grpc", + "license": "Apache-2.0" + }, + { + "package": "google.golang.org/protobuf", + "license": "BSD-3-Clause" + }, + { + "package": "gopkg.in/ini.v1", + "license": "Apache-2.0" + }, + { + "package": "gopkg.in/yaml.v2", + "license": "Apache-2.0" + }, + { + "package": "gorm.io/datatypes", + "license": "MIT" + }, + { + "package": "gorm.io/driver/mysql", + "license": "MIT" + }, + { + "package": "gorm.io/gorm", + "license": "MIT" + } +] \ No newline at end of file diff --git a/licenses.tpl b/licenses.tpl new file mode 100644 index 0000000..2d1e647 --- /dev/null +++ b/licenses.tpl @@ -0,0 +1,9 @@ +[ +{{- range $i, $e := . }} + {{- if $i }},{{ end }} + { + "package": "{{ $e.Name }}", + "license": "{{ $e.LicenseName }}" + } +{{- end }} +] \ No newline at end of file