Skip to content

Commit

Permalink
fix: fix module import path for Go module (tsenart#501)
Browse files Browse the repository at this point in the history
* fix: fix module import path for Go module

* fix: fix Go import paths in code
  • Loading branch information
mxey authored Mar 14, 2020
1 parent e516e0b commit 19b7458
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ import (
"fmt"
"time"

vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"
"time"

"github.com/tsenart/vegeta/internal/resolver"
vegeta "github.com/tsenart/vegeta/lib"
"github.com/tsenart/vegeta/v12/internal/resolver"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

func attackCmd() command {
Expand Down
2 changes: 1 addition & 1 deletion encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"strings"

vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

func file(name string, create bool) (*os.File, error) {
Expand Down
2 changes: 1 addition & 1 deletion flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/c2h5oh/datasize"
vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

// headers is the http.Header used in each target request
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/tsenart/vegeta
module github.com/tsenart/vegeta/v12

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/jsonschema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/alecthomas/jsonschema"

vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion lib/plot/assets_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"

"github.com/shurcooL/vfsgen"
"github.com/tsenart/vegeta/lib/plot"
"github.com/tsenart/vegeta/v12/lib/plot"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions lib/plot/plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"strings"
"time"

vegeta "github.com/tsenart/vegeta/lib"
"github.com/tsenart/vegeta/lib/lttb"
vegeta "github.com/tsenart/vegeta/v12/lib"
"github.com/tsenart/vegeta/v12/lib/lttb"
)

// An Plot represents an interactive HTML time series
Expand Down
4 changes: 2 additions & 2 deletions lib/plot/plot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/google/go-cmp/cmp"
vegeta "github.com/tsenart/vegeta/lib"
"github.com/tsenart/vegeta/lib/lttb"
vegeta "github.com/tsenart/vegeta/v12/lib"
"github.com/tsenart/vegeta/v12/lib/lttb"
)

var update = flag.Bool("update", false, "Update .golden files")
Expand Down
2 changes: 1 addition & 1 deletion lib/plot/timeseries.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

tsz "github.com/tsenart/go-tsz"
"github.com/tsenart/vegeta/lib/lttb"
"github.com/tsenart/vegeta/v12/lib/lttb"
)

// An in-memory timeSeries of points with high compression of
Expand Down
4 changes: 2 additions & 2 deletions plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"os/signal"

vegeta "github.com/tsenart/vegeta/lib"
"github.com/tsenart/vegeta/lib/plot"
vegeta "github.com/tsenart/vegeta/v12/lib"
"github.com/tsenart/vegeta/v12/lib/plot"
)

const plotUsage = `Usage: vegeta plot [options] [<file>...]
Expand Down
2 changes: 1 addition & 1 deletion report.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

vegeta "github.com/tsenart/vegeta/lib"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

const reportUsage = `Usage: vegeta report [options] [<file>...]
Expand Down

0 comments on commit 19b7458

Please sign in to comment.