From 31832683787388b0915f78bb506a6d552eaa67a9 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Tue, 17 Sep 2024 09:43:14 -0700 Subject: [PATCH] Deprecate the module and all packages --- clientcfg/client.go | 1 + datapoint/cast.go | 1 + dataunit/dataunit.go | 1 + disco/disco.go | 2 ++ distconf/bool.go | 1 + env/env.go | 1 + errors/analyze.go | 1 + eventcounter/eventcounter.go | 1 + explorable/explorable.go | 1 + expvar2/handler.go | 1 + go-metrics/exporter.go | 1 + go.mod | 1 + logkey/keys.go | 1 + logsink/logsink.go | 1 + maestro/load.go | 1 + metadata/aws/ec2metadata/ec2.go | 1 + metadata/hostmetadata/host.go | 1 + nettest/tcpport.go | 1 + pointer/pointer.go | 1 + reportsha/reportsha.go | 1 + safeexec/safeexec.go | 1 + sfxclient/cumulativebucket.go | 1 + sfxtest/sfxtest.go | 1 + timekeeper/timekeeper.go | 1 + timekeeper/timekeepertest/timekeepertest.go | 1 + trace/format/format.go | 1 + trace/trace.go | 1 + trace/translator/batcher.go | 1 + 28 files changed, 29 insertions(+) diff --git a/clientcfg/client.go b/clientcfg/client.go index e80bda5..c6ddf76 100644 --- a/clientcfg/client.go +++ b/clientcfg/client.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package clientcfg import ( diff --git a/datapoint/cast.go b/datapoint/cast.go index 0e93572..8ce2aa8 100644 --- a/datapoint/cast.go +++ b/datapoint/cast.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package datapoint import ( diff --git a/dataunit/dataunit.go b/dataunit/dataunit.go index af5f907..f59b3e2 100644 --- a/dataunit/dataunit.go +++ b/dataunit/dataunit.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package dataunit // Size represents a measurement of data and can return that measurement diff --git a/disco/disco.go b/disco/disco.go index 4bf7d35..96d3e63 100644 --- a/disco/disco.go +++ b/disco/disco.go @@ -1,3 +1,5 @@ +// Deprecated: This package will be removed in a future release. +// //nolint:gocritic package disco diff --git a/distconf/bool.go b/distconf/bool.go index b2b2299..c6840e6 100644 --- a/distconf/bool.go +++ b/distconf/bool.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package distconf import ( diff --git a/env/env.go b/env/env.go index cdab085..d297348 100644 --- a/env/env.go +++ b/env/env.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package env import ( diff --git a/errors/analyze.go b/errors/analyze.go index a8fff56..cdb03a0 100644 --- a/errors/analyze.go +++ b/errors/analyze.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package errors import ( diff --git a/eventcounter/eventcounter.go b/eventcounter/eventcounter.go index 320ff1d..5370209 100644 --- a/eventcounter/eventcounter.go +++ b/eventcounter/eventcounter.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package eventcounter import ( diff --git a/explorable/explorable.go b/explorable/explorable.go index c54f4e8..a04dcf9 100644 --- a/explorable/explorable.go +++ b/explorable/explorable.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package explorable import ( diff --git a/expvar2/handler.go b/expvar2/handler.go index 08bbf6c..72085c6 100644 --- a/expvar2/handler.go +++ b/expvar2/handler.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package expvar2 import ( diff --git a/go-metrics/exporter.go b/go-metrics/exporter.go index 14cbf07..edd31d5 100644 --- a/go-metrics/exporter.go +++ b/go-metrics/exporter.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package go_metrics import ( diff --git a/go.mod b/go.mod index cef7b24..0759c64 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,4 @@ +// Deprecated: This module will be removed in a future release. module github.com/signalfx/golib/v3 go 1.18 diff --git a/logkey/keys.go b/logkey/keys.go index 367af92..1f38fb6 100644 --- a/logkey/keys.go +++ b/logkey/keys.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package logkey import "github.com/signalfx/golib/v3/log" diff --git a/logsink/logsink.go b/logsink/logsink.go index eac212e..a261f0c 100644 --- a/logsink/logsink.go +++ b/logsink/logsink.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package logsink import ( diff --git a/maestro/load.go b/maestro/load.go index c03ad83..2801e6d 100644 --- a/maestro/load.go +++ b/maestro/load.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package maestro import ( diff --git a/metadata/aws/ec2metadata/ec2.go b/metadata/aws/ec2metadata/ec2.go index 8c98d26..0f19dc1 100644 --- a/metadata/aws/ec2metadata/ec2.go +++ b/metadata/aws/ec2metadata/ec2.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package ec2metadata import ( diff --git a/metadata/hostmetadata/host.go b/metadata/hostmetadata/host.go index 271f37c..ddbf93b 100644 --- a/metadata/hostmetadata/host.go +++ b/metadata/hostmetadata/host.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package hostmetadata import ( diff --git a/nettest/tcpport.go b/nettest/tcpport.go index 2c121ea..cd1d0e6 100644 --- a/nettest/tcpport.go +++ b/nettest/tcpport.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package nettest import ( diff --git a/pointer/pointer.go b/pointer/pointer.go index d3067b2..889caf1 100644 --- a/pointer/pointer.go +++ b/pointer/pointer.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package pointer import ( diff --git a/reportsha/reportsha.go b/reportsha/reportsha.go index 9cd9f49..df1e488 100644 --- a/reportsha/reportsha.go +++ b/reportsha/reportsha.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package reportsha import ( diff --git a/safeexec/safeexec.go b/safeexec/safeexec.go index dd73002..705bd90 100644 --- a/safeexec/safeexec.go +++ b/safeexec/safeexec.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package safeexec import ( diff --git a/sfxclient/cumulativebucket.go b/sfxclient/cumulativebucket.go index 3fde794..66fe9da 100644 --- a/sfxclient/cumulativebucket.go +++ b/sfxclient/cumulativebucket.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package sfxclient import ( diff --git a/sfxtest/sfxtest.go b/sfxtest/sfxtest.go index be94968..127e500 100644 --- a/sfxtest/sfxtest.go +++ b/sfxtest/sfxtest.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package sfxtest import "sync" diff --git a/timekeeper/timekeeper.go b/timekeeper/timekeeper.go index e1f6b36..d63fd1e 100644 --- a/timekeeper/timekeeper.go +++ b/timekeeper/timekeeper.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package timekeeper import "time" diff --git a/timekeeper/timekeepertest/timekeepertest.go b/timekeeper/timekeepertest/timekeepertest.go index 55f852d..0cb3699 100644 --- a/timekeeper/timekeepertest/timekeepertest.go +++ b/timekeeper/timekeepertest/timekeepertest.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package timekeepertest import ( diff --git a/trace/format/format.go b/trace/format/format.go index dc5d44b..ba6337b 100644 --- a/trace/format/format.go +++ b/trace/format/format.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package traceformat import "github.com/signalfx/golib/v3/trace" diff --git a/trace/trace.go b/trace/trace.go index 53c6cce..5aad90f 100644 --- a/trace/trace.go +++ b/trace/trace.go @@ -1,3 +1,4 @@ +// Deprecated: This package will be removed in a future release. package trace import ( diff --git a/trace/translator/batcher.go b/trace/translator/batcher.go index 14a5811..264a1f0 100644 --- a/trace/translator/batcher.go +++ b/trace/translator/batcher.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Deprecated: This package will be removed in a future release. package translator import (