-
Notifications
You must be signed in to change notification settings - Fork 105
Refactor metrictank repo to be compatible with go modules #2042
base: master
Are you sure you want to change the base?
Conversation
df95a3d
to
c87cb62
Compare
1b21e43
to
a123880
Compare
1254c68
to
731321a
Compare
cmd/mt-store-cp-experimental/main.go
Outdated
@@ -75,7 +75,7 @@ func main() { | |||
fmt.Fprintln(os.Stderr, "Copies data in Cassandra to use another table (and possibly another cluster).") | |||
fmt.Fprintln(os.Stderr, "It is up to you to assure table-out exists before running this tool") | |||
fmt.Fprintln(os.Stderr, "This tool is EXPERIMENTAL and needs doublechecking whether data is successfully written to Cassandra") | |||
fmt.Fprintln(os.Stderr, "see https://github.com/grafana/metrictank/pkg/pull/909 for details") | |||
fmt.Fprintln(os.Stderr, "see https://github.com/grafana/metrictank/pull/909 for details") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was a find-replace error
pkg/api/query_engine_test.go
Outdated
// and singles in groups by retention (in schemaID order) | ||
// * PNGroups obviously will need a common interval, which gets interesting when using multiple schemas | ||
// * coarsening continues until all data is fetched at its coarsest. At that point we may breach soft, but never hard | ||
// - requests are coarsened, PNGroup by PNGroup (we cannot predict PNGroup map iteration order, so we only test with 1 PNGroup), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new gofmt does different things
pkg/api/query_engine.go
Outdated
@@ -64,7 +64,7 @@ var ( | |||
// also takes a "now" value which we compare the TTL against | |||
|
|||
// Note: MDP-yes code path may not take into account that archive 0 may have a different raw interval. | |||
// see https://github.com/grafana/metrictank/issues/1679 | |||
// see https://github.com/grafana/metrictank/pkg/issues/1679 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
I think to fix the pointed out search & replace issue the easiest would be to just search and replace these strings: github.com/grafana/metrictank/pkg/blob and remove the |
731321a
to
aeba5bd
Compare
ok I rolled the deps back that I could get from gopkg.lock, but unfortunately there are still massive diffs between the checked-in vendor/ dir in metrictank and the versions created by I think the next step is figuring out a way to test this branch to see if any of the module updates break anything. |
due to the risk of instability, we are going to put off merging this until ~Q1 or so. |
This PR refactors the entire metrictank repository to make it compatible with Go modules as well with vscode's static compilation. All of the Makefile commands have been fixed (as far as I know). I believe travis/circleci is also working.
As part of the change, the vendor/ directory has been removed from checked-in source, instead users should run
go mod vendor
locally as needed.