Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Support Go Modules#22

Merged
crosbymichael merged 1 commit into
docker:masterfrom
SamWhited:support_modules
Aug 28, 2019
Merged

Support Go Modules#22
crosbymichael merged 1 commit into
docker:masterfrom
SamWhited:support_modules

Conversation

@SamWhited

Copy link
Copy Markdown
Contributor

Pin the Prometheus version and support Go Modules. Because this package is not versioned, nothing needs to be done other than adding a go.mod file. If we want to start versioning this package in the future, we can start adding semver compatible tags to give us something to pin to in other projects that depend on this one.

@crosbymichael

Copy link
Copy Markdown
Contributor

LGTM

@crosbymichael
crosbymichael merged commit b619b35 into docker:master Aug 28, 2019
@SamWhited
SamWhited deleted the support_modules branch August 28, 2019 14:43
@SamWhited

Copy link
Copy Markdown
Contributor Author

@crosbymichael thanks! Since this repo isn't updated often (and not likely to be updated all that often), is there any chance you could tag a v0.0.1 or similar just to clean up other projects go.mod files that depend on this?

@crosbymichael

Copy link
Copy Markdown
Contributor

sure!

@crosbymichael

Copy link
Copy Markdown
Contributor

thaJeztah added a commit to thaJeztah/containerd that referenced this pull request Jan 13, 2020
full diff: docker/go-metrics@4ea375f...v0.0.1

- docker/go-metrics#15 Add functions that instruments http handler using promhttp
- docker/go-metrics#20 Rename LICENSE.code → LICENSE
- docker/go-metrics#22 Support Go Modules

Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah added a commit to thaJeztah/docker that referenced this pull request Jan 16, 2020
bump docker/go-metrics v0.0.1:

full diff: docker/go-metrics@d466d4f...v0.0.1

- docker/go-metrics#16 fix the compilation error against prometheus/client-golang master
- fixes docker/go-metrics#12 No longer builds against Prom master
- docker/go-metrics#18 metrics: address compile error correctly
- fixes docker/go-metrics#12 No longer builds against Prom master
- docker/go-metrics#15 Add functions that instruments http handler using promhttp
- docker/go-metrics#20 Rename LICENSE.code → LICENSE
- docker/go-metrics#22 Support Go Modules

bump prometheus/client_golang v0.9.4:

full diff: prometheus/client_golang@c5b7fcc...v0.9.4

version v0.9.0 is the minimum required version to work with go-metrics v0.0.1,
as it depends on `prometheus.Observer`:

    vendor/github.com/docker/go-metrics/timer.go:39:4: undefined: prometheus.Observer

Signed-off-by: Sebastiaan van Stijn <[email protected]>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Jan 17, 2020
bump docker/go-metrics v0.0.1:

full diff: docker/go-metrics@d466d4f...v0.0.1

- docker/go-metrics#16 fix the compilation error against prometheus/client-golang master
- fixes docker/go-metrics#12 No longer builds against Prom master
- docker/go-metrics#18 metrics: address compile error correctly
- fixes docker/go-metrics#12 No longer builds against Prom master
- docker/go-metrics#15 Add functions that instruments http handler using promhttp
- docker/go-metrics#20 Rename LICENSE.code → LICENSE
- docker/go-metrics#22 Support Go Modules

bump prometheus/client_golang v0.9.4:

full diff: prometheus/client_golang@c5b7fcc...v0.9.4

version v0.9.0 is the minimum required version to work with go-metrics v0.0.1,
as it depends on `prometheus.Observer`:

    vendor/github.com/docker/go-metrics/timer.go:39:4: undefined: prometheus.Observer

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Upstream-commit: b2db7c8bc967b52609877f5d856c338ea51e4c46
Component: engine
tussennet pushed a commit to tussennet/containerd that referenced this pull request Sep 11, 2020
full diff: docker/go-metrics@4ea375f...v0.0.1

- docker/go-metrics#15 Add functions that instruments http handler using promhttp
- docker/go-metrics#20 Rename LICENSE.code → LICENSE
- docker/go-metrics#22 Support Go Modules

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants