From 095ff946fe7a8104f6c9f1f340ccbde081a7cc88 Mon Sep 17 00:00:00 2001 From: mcoops Date: Thu, 18 Nov 2021 13:28:13 +1100 Subject: [PATCH] glide, gopkg: update tests (#57) --- deplist_test.go | 44 ++++++++++++++++++++++++++++++++++++++++ test/testRepo/Gopkg.lock | 27 ++++++++++++++++++++++++ test/testRepo/glide.lock | 24 ++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 test/testRepo/Gopkg.lock create mode 100644 test/testRepo/glide.lock diff --git a/deplist_test.go b/deplist_test.go index ab32da3..7e3b63b 100644 --- a/deplist_test.go +++ b/deplist_test.go @@ -49,6 +49,31 @@ func BuildWant() []Dependency { "unsafe", } + glidePaths := []string{ + "github.com/beorn7/perks", + "github.com/beorn7/perks/quantile", + "github.com/bgentry/speakeasy", + "github.com/boltdb/bolt", + "github.com/cockroachdb/cmux", + "github.com/coreos/go-semver", + "github.com/coreos/go-semver/semver", + "github.com/coreos/go-systemd", + "github.com/coreos/go-systemd/daemon", + "github.com/coreos/go-systemd/journal", + "github.com/coreos/go-systemd/util", + } + + gopkgPaths := []string{ + "github.com/BurntSushi/toml", + "github.com/aws/aws-sdk-go", + "github.com/aws/aws-sdk-go/aws", + "github.com/aws/aws-sdk-go/aws/awserr", + "github.com/aws/aws-sdk-go/aws/awsutil", + "github.com/aws/aws-sdk-go/aws/client", + "github.com/aws/aws-sdk-go/aws/client/metadata", + "github.com/aws/aws-sdk-go/aws/corehandlers", + } + npmSet1 := []string{ "loose-envify", "iconv-lite", @@ -208,6 +233,25 @@ func BuildWant() []Dependency { deps[4].Version = "v0.3.3" // test golang.org/x/text/unicode version + for _, n := range glidePaths { + deps = append(deps, Dependency{ + DepType: 1, + Path: n, + }) + } + + for i, n := range gopkgPaths { + ver := "" + if i > 0 { + ver = "v1.13.49" + } + deps = append(deps, Dependency{ + DepType: 1, + Path: n, + Version: ver, + }) + } + for _, n := range npmSet1 { d := Dependency{ DepType: 3, diff --git a/test/testRepo/Gopkg.lock b/test/testRepo/Gopkg.lock new file mode 100644 index 0000000..742450e --- /dev/null +++ b/test/testRepo/Gopkg.lock @@ -0,0 +1,27 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + +[[projects]] + name = "github.com/BurntSushi/toml" + packages = ["."] + revision = "b26d9c308763d68093482582cea63d69be07a0f0" + version = "v0.3.0" + +[[projects]] + name = "github.com/aws/aws-sdk-go" + packages = [ + "aws", + "aws/awserr", + "aws/awsutil", + "aws/client", + "aws/client/metadata", + "aws/corehandlers", + ] + revision = "c7cd1ebe87257cde9b65112fc876b0339ea0ac30" + version = "v1.13.49" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "85cc057e0cc074ab5b43bd620772d63d51e07b04e8782fcfe55e6929d2fc40f7" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/test/testRepo/glide.lock b/test/testRepo/glide.lock new file mode 100644 index 0000000..5a92aaa --- /dev/null +++ b/test/testRepo/glide.lock @@ -0,0 +1,24 @@ +hash: testf2629857e9c2384ad89ff6014db09498c9af53771e5144ad3a4b510ff00e +update: 2021-11-18T00:01:00.22600012-07:00 +imports: +- name: github.com/beorn7/perks + version: 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9 + subpackages: + - quantile +- name: github.com/bgentry/speakeasy + version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd +- name: github.com/boltdb/bolt + version: 583e8937c61f1af6513608ccc75c97b6abdf4ff9 +- name: github.com/cockroachdb/cmux + version: 112f0506e7743d64a6eb8fedbcff13d9979bbf92 +- name: github.com/coreos/go-semver + version: 8ab6407b697782a06568d4b7f1db25550ec2e4c6 + subpackages: + - semver +- name: github.com/coreos/go-systemd + version: 48702e0da86bd25e76cfef347e2adeb434a0d0a6 + subpackages: + - daemon + - journal + - util +testImports: []