Skip to content

Commit

Permalink
chore: Replace autonomy with talos-systems
Browse files Browse the repository at this point in the history
Fixes up import paths to use updated org name

Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
  • Loading branch information
bradbeam committed Sep 27, 2019
1 parent 7bed912 commit 0076446
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 92 deletions.
4 changes: 2 additions & 2 deletions cmd/enforce.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"fmt"
"os"

"github.com/autonomy/conform/internal/enforcer"
"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/talos-systems/conform/internal/enforcer"
"github.com/talos-systems/conform/internal/policy"
)

// enforceCmd represents the enforce command
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"html/template"
"runtime"

"github.com/autonomy/conform/internal/constants"
"github.com/spf13/cobra"
"github.com/talos-systems/conform/internal/constants"
)

var (
Expand Down
43 changes: 18 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,52 +1,45 @@
module github.com/autonomy/conform
module github.com/talos-systems/conform

require (
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 // indirect
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
github.com/fsnotify/fsnotify v1.4.7 // indirect
github.com/gliderlabs/ssh v0.1.1 // indirect
github.com/google/go-cmp v0.3.0 // indirect
github.com/gliderlabs/ssh v0.2.2 // indirect
github.com/google/go-cmp v0.3.1 // indirect
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
github.com/hashicorp/hcl v0.0.0-20170509225359-392dba7d905e // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20170525151105-fa48d7ff1cfb // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/magiconair/properties v1.7.2 // indirect
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/mingrammer/commonregex v1.0.0 // indirect
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747
github.com/mitchellh/mapstructure v0.0.0-20170523030023-d0303fe80992
github.com/montanaflynn/stats v0.5.0 // indirect
github.com/neurosnap/sentences v1.0.6 // indirect
github.com/pelletier/go-buffruneio v0.2.0 // indirect
github.com/pelletier/go-toml v1.0.0 // indirect
github.com/pelletier/go-toml v1.4.0 // indirect
github.com/pkg/errors v0.8.1
github.com/sergi/go-diff v0.0.0-20170409071739-feef008d51ad // indirect
github.com/spf13/afero v1.2.0 // indirect
github.com/spf13/cast v1.1.0 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/cobra v0.0.3
github.com/spf13/jwalterweatherman v0.0.0-20170523133247-0efa5202c046 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/spf13/viper v0.0.0-20170619124313-c1de95864d73
github.com/src-d/gcfg v1.3.0 // indirect
github.com/stretchr/testify v1.3.0 // indirect
github.com/xanzy/ssh-agent v0.1.0 // indirect
golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284 // indirect
golang.org/x/exp v0.0.0-20190121172915-509febef88a4 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/stretchr/testify v1.4.0 // indirect
github.com/xanzy/ssh-agent v0.2.1 // indirect
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c // indirect
golang.org/x/sys v0.0.0-20190508220229-2d0786266e9c // indirect
golang.org/x/text v0.3.2 // indirect
gonum.org/v1/gonum v0.0.0-20190119014124-d54847ab4dca // indirect
gonum.org/v1/netlib v0.0.0-20190119082159-9be13e02fd56 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gonum.org/v1/gonum v0.0.0-20190816090505-0436873561a9 // indirect
gopkg.in/jdkato/prose.v2 v2.0.0-20180825173540-767a23049b9e
gopkg.in/neurosnap/sentences.v1 v1.0.6 // indirect
gopkg.in/src-d/go-billy.v4 v4.0.1 // indirect
gopkg.in/src-d/go-git-fixtures.v3 v3.1.1 // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 // indirect
gopkg.in/src-d/go-git.v4 v4.0.0
gopkg.in/warnings.v0 v0.1.1 // indirect
gopkg.in/yaml.v2 v2.2.2
Expand Down
100 changes: 58 additions & 42 deletions go.sum

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions internal/enforcer/enforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"os"
"text/tabwriter"

"github.com/autonomy/conform/internal/policy"
"github.com/autonomy/conform/internal/policy/commit"
"github.com/autonomy/conform/internal/policy/license"
"github.com/autonomy/conform/internal/summarizer"
"github.com/mitchellh/mapstructure"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
"github.com/talos-systems/conform/internal/policy/commit"
"github.com/talos-systems/conform/internal/policy/license"
"github.com/talos-systems/conform/internal/summarizer"

yaml "gopkg.in/yaml.v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/policy/commit/check_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package commit
import (
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
)

// RequiredBodyThreshold is the default minimum number of line changes required
Expand Down
2 changes: 1 addition & 1 deletion internal/policy/commit/check_conventional_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"regexp"
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
)

// Conventional implements the policy.Policy interface and enforces commit
Expand Down
2 changes: 1 addition & 1 deletion internal/policy/commit/check_dco.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"regexp"
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
)

// DCORegex is the regular expression used for Developer Certificate of Origin.
Expand Down
4 changes: 2 additions & 2 deletions internal/policy/commit/check_gpg_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package commit

import (
"github.com/autonomy/conform/internal/git"
"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/git"
"github.com/talos-systems/conform/internal/policy"
)

// GPGCheck ensures that the commit is cryptographically signed using GPG.
Expand Down
2 changes: 1 addition & 1 deletion internal/policy/commit/check_header_length.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
)

// MaxNumberOfCommitCharacters is the default maximium number of characters
Expand Down
2 changes: 1 addition & 1 deletion internal/policy/commit/check_imperative_verb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package commit
import (
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
"gopkg.in/jdkato/prose.v2"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/policy/commit/check_number_of_commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package commit
import (
"fmt"

"github.com/autonomy/conform/internal/git"
"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/git"
"github.com/talos-systems/conform/internal/policy"
)

// NumberOfCommits enforces a maximum number of charcters on the commit
Expand Down
4 changes: 2 additions & 2 deletions internal/policy/commit/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"regexp"
"strings"

"github.com/autonomy/conform/internal/git"
"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/git"
"github.com/talos-systems/conform/internal/policy"
)

// Commit implements the policy.Policy interface and enforces commit
Expand Down
8 changes: 4 additions & 4 deletions internal/policy/commit/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os/exec"
"testing"

"github.com/autonomy/conform/internal/policy"
"github.com/talos-systems/conform/internal/policy"
)

func RemoveAll(dir string) {
Expand Down Expand Up @@ -237,19 +237,19 @@ func initRepo() error {
}

func createValidCommit() error {
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@autonomy.io'", "commit", "-m", "type(scope): description").Output()
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@talos-systems.io'", "commit", "-m", "type(scope): description").Output()

return err
}

func createInvalidCommit() error {
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@autonomy.io'", "commit", "-m", "invalid commit").Output()
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@talos-systems.io'", "commit", "-m", "invalid commit").Output()

return err
}

func createEmptyCommit() error {
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@autonomy.io'", "commit", "--allow-empty-message", "-m", "").Output()
_, err := exec.Command("git", "-c", "user.name='test'", "-c", "user.email='test@talos-systems.io'", "commit", "--allow-empty-message", "-m", "").Output()

return err
}
2 changes: 1 addition & 1 deletion internal/policy/license/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"path/filepath"
"strings"

"github.com/autonomy/conform/internal/policy"
"github.com/pkg/errors"
"github.com/talos-systems/conform/internal/policy"
)

// License implements the policy.Policy interface and enforces source code
Expand Down
2 changes: 1 addition & 1 deletion internal/summarizer/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"path"
"strings"

"github.com/autonomy/conform/internal/git"
"github.com/google/go-github/github"
"github.com/talos-systems/conform/internal/git"
)

// Summarizer describes a hook for send summarized results to a remote API.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package main

import "github.com/autonomy/conform/cmd"
import "github.com/talos-systems/conform/cmd"

func main() {
cmd.Execute()
Expand Down

0 comments on commit 0076446

Please sign in to comment.