diff --git a/backend/backends.go b/backend/backends.go index 2f22ebfd..905d49e8 100644 --- a/backend/backends.go +++ b/backend/backends.go @@ -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 { diff --git a/backend/cloudwatch.go b/backend/cloudwatch.go index 1ad09478..b2c5fa97 100644 --- a/backend/cloudwatch.go +++ b/backend/cloudwatch.go @@ -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 diff --git a/backend/newrelic.go b/backend/newrelic.go index f0cacd64..67bdcbec 100644 --- a/backend/newrelic.go +++ b/backend/newrelic.go @@ -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" ) diff --git a/backend/prometheus.go b/backend/prometheus.go index 43dee443..a9765014 100644 --- a/backend/prometheus.go +++ b/backend/prometheus.go @@ -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" diff --git a/backend/prometheus_test.go b/backend/prometheus_test.go index a328b3a7..f5720641 100644 --- a/backend/prometheus_test.go +++ b/backend/prometheus_test.go @@ -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" diff --git a/backend/stackdriver.go b/backend/stackdriver.go index 4f4b5788..d2ed219e 100644 --- a/backend/stackdriver.go +++ b/backend/stackdriver.go @@ -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" diff --git a/backend/statsd.go b/backend/statsd.go index a2f4bcb5..89e4faba 100644 --- a/backend/statsd.go +++ b/backend/statsd.go @@ -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) diff --git a/go.mod b/go.mod index 4522d840..19b44cb0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/buildkite/buildkite-agent-metrics +module github.com/buildkite/buildkite-agent-metrics/v5 go 1.20 diff --git a/lambda/main.go b/lambda/main.go index 938f099e..879c7b2c 100644 --- a/lambda/main.go +++ b/lambda/main.go @@ -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 ( diff --git a/main.go b/main.go index 11ff9dce..24a94729 100644 --- a/main.go +++ b/main.go @@ -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 diff --git a/token/secretsmanager_test.go b/token/secretsmanager_test.go index 5db7183a..5a9fdb7e 100644 --- a/token/secretsmanager_test.go +++ b/token/secretsmanager_test.go @@ -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" ) diff --git a/token/ssm_test.go b/token/ssm_test.go index 6f57a0e8..292b239c 100644 --- a/token/ssm_test.go +++ b/token/ssm_test.go @@ -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" )