Skip to content

Commit

Permalink
Merge pull request #248 from buildkite/v5-package-path
Browse files Browse the repository at this point in the history
Add v5 to module path
  • Loading branch information
DrJosh9000 authored Dec 19, 2023
2 parents 35c770e + 9bc8a01 commit 3756be6
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion backend/backends.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package backend

import "github.com/buildkite/buildkite-agent-metrics/collector"
import "github.com/buildkite/buildkite-agent-metrics/v5/collector"

// Backend is a receiver of metrics
type Backend interface {
Expand Down
2 changes: 1 addition & 1 deletion backend/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
)

// CloudWatchDimension is a dimension to add to metrics
Expand Down
2 changes: 1 addition & 1 deletion backend/newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
newrelic "github.com/newrelic/go-agent"
)

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

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down
2 changes: 1 addition & 1 deletion backend/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/google/go-cmp/cmp"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
Expand Down
2 changes: 1 addition & 1 deletion backend/stackdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"google.golang.org/genproto/googleapis/api/label"
"google.golang.org/protobuf/types/known/timestamppb"

Expand Down
2 changes: 1 addition & 1 deletion backend/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/DataDog/datadog-go/statsd"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
)

// StatsD sends metrics to StatsD (Datadog spec)
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/buildkite/buildkite-agent-metrics
module github.com/buildkite/buildkite-agent-metrics/v5

go 1.20

Expand Down
8 changes: 4 additions & 4 deletions lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/aws/aws-sdk-go/service/ssm"

"github.com/buildkite/buildkite-agent-metrics/backend"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/token"
"github.com/buildkite/buildkite-agent-metrics/version"
"github.com/buildkite/buildkite-agent-metrics/v5/backend"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/token"
"github.com/buildkite/buildkite-agent-metrics/v5/version"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"time"

"github.com/buildkite/buildkite-agent-metrics/backend"
"github.com/buildkite/buildkite-agent-metrics/collector"
"github.com/buildkite/buildkite-agent-metrics/version"
"github.com/buildkite/buildkite-agent-metrics/v5/backend"
"github.com/buildkite/buildkite-agent-metrics/v5/collector"
"github.com/buildkite/buildkite-agent-metrics/v5/version"
)

// Where we send metrics
Expand Down
2 changes: 1 addition & 1 deletion token/secretsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/buildkite/buildkite-agent-metrics/token/mock"
"github.com/buildkite/buildkite-agent-metrics/v5/token/mock"
"github.com/golang/mock/gomock"
)

Expand Down
2 changes: 1 addition & 1 deletion token/ssm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/buildkite/buildkite-agent-metrics/token/mock"
"github.com/buildkite/buildkite-agent-metrics/v5/token/mock"
"github.com/golang/mock/gomock"
)

Expand Down

0 comments on commit 3756be6

Please sign in to comment.