Skip to content

Commit

Permalink
Merge pull request #365 from fvbommel/migrate-sortorder
Browse files Browse the repository at this point in the history
Migrate to new sortorder import path
  • Loading branch information
redhatrises authored Sep 16, 2020
2 parents f24ca1b + f3671cd commit 6713ef0
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 21 deletions.
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ require (
github.com/blang/semver v1.1.1-0.20200524153540-4487282d7812
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/set v0.2.1
github.com/fvbommel/sortorder v1.0.1
github.com/onsi/ginkgo v1.14.1-0.20200812193004-f49cf5da3a2f
github.com/onsi/gomega v1.10.2-0.20200811195334-990941a380b2
github.com/spf13/cobra v1.0.1-0.20200823174541-9ed1d713d619
github.com/spf13/pflag v1.0.6-0.20200504143853-81378bbcd8a1 // indirect
github.com/stretchr/objx v0.1.1 // indirect
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709
github.com/tg/gosortmap v0.0.0-20190425101757-4b9ddc7c3a61
github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1 // indirect
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect
golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8 // indirect
golang.org/x/text v0.3.4-0.20200821135104-79eda68eebff // indirect
gopkg.in/yaml.v2 v2.3.1-0.20200602174213-b893565b90ca
vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787
)
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ github.com/fatih/set v0.2.1/go.mod h1:+RKtMCH+favT2+3YecHGxcc0b4KyVWA1QWWJUs4E0C
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fvbommel/sortorder v1.0.1 h1:dSnXLt4mJYH25uDDGa3biZNQsozaUWDSWeKJ0qqFfzE=
github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
Expand Down Expand Up @@ -52,8 +54,6 @@ github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709 h1:Ko2LQMrRU+Oy
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/tg/gosortmap v0.0.0-20190425101757-4b9ddc7c3a61 h1:8sTn8YrNeBMbu6nGJLFxA+LqiJ1yPjvLMBHF3aTmMfA=
github.com/tg/gosortmap v0.0.0-20190425101757-4b9ddc7c3a61/go.mod h1:zy3H7er7fS3X6u5hRIADO2KrfONyymrSfrge7IPXcCM=
github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1 h1:j2hhcujLRHAg872RWAV5yaUrEjHEObwDv3aImCaNLek=
github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1/go.mod h1:QcJo0QPSfTONNIgpN5RA8prR7fF8nkF6cTWTcNerRO8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -95,5 +95,3 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.1-0.20200602174213-b893565b90ca h1:oivFrl3Vo+KfpUmTDJvz91I+BWzDPOQ+0CNR5jwTHcg=
gopkg.in/yaml.v2 v2.3.1-0.20200602174213-b893565b90ca/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787 h1:O69FD9pJA4WUZlEwYatBEEkRWKQ5cKodWpdKTrCS/iQ=
vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI=
2 changes: 1 addition & 1 deletion pkg/lib/certifications/versions/1_0_0/certification.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/fvbommel/sortorder"
"sort"
"vbom.ml/util/sortorder"
)

// Certification struct is a collection of specific standards and controls
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/common/verifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package common

import (
"vbom.ml/util/sortorder"
"github.com/fvbommel/sortorder"
)

// Verification struct holds data for a specific component and verification
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync"

"fmt"
"github.com/fvbommel/sortorder"
"sort"
"vbom.ml/util/sortorder"

"github.com/opencontrol/compliance-masonry/pkg/lib/common"
"github.com/opencontrol/compliance-masonry/pkg/lib/components"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/standards/versions/1_0_0/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package standard
import (
"sort"

"github.com/fvbommel/sortorder"
"github.com/opencontrol/compliance-masonry/pkg/lib/common"
"vbom.ml/util/sortorder"
)

// Control struct stores data on a specific security requirement
Expand Down
19 changes: 19 additions & 0 deletions vendor/github.com/fvbommel/sortorder/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
5 changes: 5 additions & 0 deletions vendor/github.com/fvbommel/sortorder/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/fvbommel/sortorder/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
File renamed without changes.
8 changes: 3 additions & 5 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ github.com/davecgh/go-spew/spew
github.com/fatih/set
# github.com/fsnotify/fsnotify v1.4.9
github.com/fsnotify/fsnotify
# github.com/fvbommel/sortorder v1.0.1
## explicit
github.com/fvbommel/sortorder
# github.com/inconshreveable/mousetrap v1.0.0
github.com/inconshreveable/mousetrap
# github.com/nxadm/tail v1.4.4
Expand Down Expand Up @@ -76,8 +79,6 @@ github.com/stretchr/testify/mock
# github.com/tg/gosortmap v0.0.0-20190425101757-4b9ddc7c3a61
## explicit
github.com/tg/gosortmap
# github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1
## explicit
# golang.org/x/net v0.0.0-20200822124328-c89045814202
## explicit
golang.org/x/net/html
Expand Down Expand Up @@ -114,6 +115,3 @@ gopkg.in/tomb.v1
# gopkg.in/yaml.v2 v2.3.1-0.20200602174213-b893565b90ca
## explicit
gopkg.in/yaml.v2
# vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787
## explicit
vbom.ml/util/sortorder
5 changes: 0 additions & 5 deletions vendor/vbom.ml/util/sortorder/README.md

This file was deleted.

0 comments on commit 6713ef0

Please sign in to comment.