Skip to content

Commit 5749420

Browse files
committed
Add /v2 to package to comply with golang's semantic import versioning
1 parent 3f8c23f commit 5749420

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+250
-245
lines changed

cal/cal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"testing"
1919
"time"
2020

21-
"github.com/Netflix/chaosmonkey/cal"
21+
"github.com/Netflix/chaosmonkey/v2/cal"
2222
)
2323

2424
var weekdayTests = []struct {

chaosmonkey_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package chaosmonkey_test
1717
import (
1818
"testing"
1919

20-
"github.com/Netflix/chaosmonkey"
20+
"github.com/Netflix/chaosmonkey/v2"
2121
)
2222

2323
func TestExceptionMatches(t *testing.T) {

cmd/chaosmonkey/main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ Chaos Monkey randomly terminates instances.
1818
package main
1919

2020
import (
21-
"github.com/Netflix/chaosmonkey/command"
21+
"github.com/Netflix/chaosmonkey/v2/command"
2222

2323
// These are anonymous imported so that the related Get* methods (e.g.,
2424
// GetDecryptor) are picked up.
2525

26-
_ "github.com/Netflix/chaosmonkey/constrainer"
27-
_ "github.com/Netflix/chaosmonkey/decryptor"
28-
_ "github.com/Netflix/chaosmonkey/env"
29-
_ "github.com/Netflix/chaosmonkey/errorcounter"
30-
_ "github.com/Netflix/chaosmonkey/outage"
31-
_ "github.com/Netflix/chaosmonkey/tracker"
26+
_ "github.com/Netflix/chaosmonkey/v2/constrainer"
27+
_ "github.com/Netflix/chaosmonkey/v2/decryptor"
28+
_ "github.com/Netflix/chaosmonkey/v2/env"
29+
_ "github.com/Netflix/chaosmonkey/v2/errorcounter"
30+
_ "github.com/Netflix/chaosmonkey/v2/outage"
31+
_ "github.com/Netflix/chaosmonkey/v2/tracker"
3232
)
3333

3434
func main() {

command/chaosmonkey.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ import (
2525

2626
flag "github.com/spf13/pflag"
2727

28-
"github.com/Netflix/chaosmonkey"
29-
"github.com/Netflix/chaosmonkey/clock"
30-
"github.com/Netflix/chaosmonkey/config"
31-
"github.com/Netflix/chaosmonkey/config/param"
32-
"github.com/Netflix/chaosmonkey/deploy"
33-
"github.com/Netflix/chaosmonkey/deps"
34-
"github.com/Netflix/chaosmonkey/mysql"
35-
"github.com/Netflix/chaosmonkey/schedstore"
36-
"github.com/Netflix/chaosmonkey/schedule"
37-
"github.com/Netflix/chaosmonkey/spinnaker"
28+
"github.com/Netflix/chaosmonkey/v2"
29+
"github.com/Netflix/chaosmonkey/v2/clock"
30+
"github.com/Netflix/chaosmonkey/v2/config"
31+
"github.com/Netflix/chaosmonkey/v2/config/param"
32+
"github.com/Netflix/chaosmonkey/v2/deploy"
33+
"github.com/Netflix/chaosmonkey/v2/deps"
34+
"github.com/Netflix/chaosmonkey/v2/mysql"
35+
"github.com/Netflix/chaosmonkey/v2/schedstore"
36+
"github.com/Netflix/chaosmonkey/v2/schedule"
37+
"github.com/Netflix/chaosmonkey/v2/spinnaker"
3838
)
3939

4040
// Version is the version number

command/dumpconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"fmt"
1919
"os"
2020

21-
"github.com/Netflix/chaosmonkey"
21+
"github.com/Netflix/chaosmonkey/v2"
2222
"github.com/davecgh/go-spew/spew"
2323
)
2424

command/dumpmonkeyconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package command
1717
import (
1818
"fmt"
1919

20-
"github.com/Netflix/chaosmonkey/config"
20+
"github.com/Netflix/chaosmonkey/v2/config"
2121
)
2222

2323
// DumpMonkeyConfig dumps the monkey-level config parameters to stdout

command/eligible.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818
"fmt"
1919
"os"
2020

21-
"github.com/Netflix/chaosmonkey"
22-
"github.com/Netflix/chaosmonkey/deploy"
23-
"github.com/Netflix/chaosmonkey/eligible"
24-
"github.com/Netflix/chaosmonkey/grp"
21+
"github.com/Netflix/chaosmonkey/v2"
22+
"github.com/Netflix/chaosmonkey/v2/deploy"
23+
"github.com/Netflix/chaosmonkey/v2/eligible"
24+
"github.com/Netflix/chaosmonkey/v2/grp"
2525
)
2626

2727
// Eligible prints out a list of instance ids eligible for termination

command/fetchschedule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"log"
1919
"time"
2020

21-
"github.com/Netflix/chaosmonkey/config"
22-
"github.com/Netflix/chaosmonkey/schedstore"
21+
"github.com/Netflix/chaosmonkey/v2/config"
22+
"github.com/Netflix/chaosmonkey/v2/schedstore"
2323
)
2424

2525
// FetchSchedule executes the "fetch-schedule" command. This checks if there

command/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ package command
1616

1717
import (
1818
"fmt"
19-
"github.com/Netflix/chaosmonkey/config"
20-
"github.com/Netflix/chaosmonkey/mysql"
19+
"github.com/Netflix/chaosmonkey/v2/config"
20+
"github.com/Netflix/chaosmonkey/v2/mysql"
2121
"io/ioutil"
2222
"log"
2323
"os"

command/install_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ package command
1616

1717
import (
1818
"fmt"
19-
"github.com/Netflix/chaosmonkey/config"
20-
"github.com/Netflix/chaosmonkey/config/param"
21-
"github.com/Netflix/chaosmonkey/mock"
19+
"github.com/Netflix/chaosmonkey/v2/config"
20+
"github.com/Netflix/chaosmonkey/v2/config/param"
21+
"github.com/Netflix/chaosmonkey/v2/mock"
2222
"github.com/pkg/errors"
2323
"io/ioutil"
2424
"testing"

0 commit comments

Comments
 (0)