Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Format version time as in docker/cli#223

Merged
vdemeester merged 1 commit intodocker-archive-public:masterfrom
chris-crone:version-time
Jun 13, 2018
Merged

Format version time as in docker/cli#223
vdemeester merged 1 commit intodocker-archive-public:masterfrom
chris-crone:version-time

Conversation

@chris-crone
Copy link
Copy Markdown
Contributor

Fixes #189

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
@chris-crone chris-crone requested a review from vdemeester June 12, 2018 22:24
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 12, 2018

Codecov Report

Merging #223 into master will decrease coverage by 1.32%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #223      +/-   ##
==========================================
- Coverage    47.4%   46.08%   -1.33%     
==========================================
  Files          39       39              
  Lines        2757     2719      -38     
==========================================
- Hits         1307     1253      -54     
- Misses       1249     1262      +13     
- Partials      201      204       +3
Impacted Files Coverage Δ
internal/version.go 92.85% <83.33%> (-7.15%) ⬇️
internal/renderer/render.go 61.22% <0%> (-15.4%) ⬇️
cmd/docker-app/render.go 50% <0%> (-14.11%) ⬇️
internal/renderer/inspect.go 77.14% <0%> (-10.36%) ⬇️
cmd/docker-app/helm.go 58.33% <0%> (-9.67%) ⬇️
cmd/docker-app/image-add.go 25% <0%> (-4.73%) ⬇️
internal/renderer/helm.go 60.09% <0%> (-3.97%) ⬇️
internal/image/image.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2ae9d25...3cff8f2. Read the comment docs.

Copy link
Copy Markdown
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐯

Comment thread internal/version.go
return strings.Join(res, "\n")
}

// FIXME(chris-crone): use function in docker/cli/cli/command/system/version.go.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

@vdemeester vdemeester merged commit 879302e into docker-archive-public:master Jun 13, 2018
@vdemeester vdemeester deleted the version-time branch June 13, 2018 06:15
Comment thread internal/version.go
// FIXME(chris-crone): use function in docker/cli/cli/command/system/version.go.
func reformatDate(buildTime string) string {
t, errTime := time.Parse(time.RFC3339Nano, buildTime)
if errTime == nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: errTime -> err?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copypasta'd this from docker/cli but yes, err would be sufficient.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants