Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

fix: tolerate leading v in semantic versions from coder version API#449

Merged
johnstcn merged 2 commits intomainfromcj/noissue/semver_nonstrict
Sep 30, 2021

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedSep 30, 2021
edited
Loading

vX.Y.Z is not tolerated bysemver.StrictNewVersion, but is what we embed into our build metadata.
Replace all existing uses ofNewStrictVersion outside test code with its non-strict equivalentNewVersion.

$ go build -ldflags"-X cdr.dev/coder-cli/internal/version.Version=v12.34.56" ./cmd/coder$ ./coder updateinfo: Current version of coder-cli is"v12.34.56"info: Coder instance at"██████████████████████" reports version"1.21.0-rc.1+738-g20e9135d8-20210929"? Do you want to download version 1.21.0 instead? [y/N] y█info: query github releases| url:"https://api.github.com/repos/cdr/coder-cli/releases/tags/v1.21.0-rc.1"info: fetching coder-cli from GitHub releases| https://github.com/cdr/coder-cli/releases/download/v1.21.0-rc.1/coder-cli-linux-amd64.tar.gzinfo: updated binary reports"coder version v1.21.0-rc.1 go1.16.6 linux/amd64"success: Updated coder CLI to version 1.21.0-rc.1+738-g20e9135d8-20210929

@johnstcnjohnstcn self-assigned thisSep 30, 2021
@coveralls
Copy link

coveralls commentedSep 30, 2021
edited
Loading

Pull Request Test Coverage Report forBuild 1290564789

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 6 of7(85.71%) changed or added relevant lines in1 file are covered.
  • 50 unchanged lines in2 files lost coverage.
  • Overall coverage increased (+0.03%) to48.014%

Changes Missing CoverageCovered LinesChanged/Added Lines%
internal/cmd/update.go6785.71%
Files with Coverage ReductionNew Missed Lines%
wsnet/dial.go278.02%
internal/cmd/update.go4874.43%
TotalsCoverage Status
Change from baseBuild 1280854818:0.03%
Covered Lines:2816
Relevant Lines:5865

💛 -Coveralls

@johnstcnjohnstcn merged commit34d96a1 intomainSep 30, 2021
@johnstcnjohnstcn deleted the cj/noissue/semver_nonstrict branchSeptember 30, 2021 14:47
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@jawnsyjawnsyAwaiting requested review from jawnsy

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@johnstcn@coveralls@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp