Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix GET /version for zed built by "go install" #4371

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

nwt
Copy link
Member

@nwt nwt commented Feb 9, 2023

For a zed binary built by "go install", a GET /version request always receives a response of '{"version":"unknown"}'. Fix this changing cli.Version from a variable to a function that calls debug.ReadBuildInfo if the new cli.version variable hasn't be set by the linker.

Closes #4370.

For a zed binary built by "go install", a GET /version request always
receives a response of '{"version":"unknown"}'.  Fix this changing
cli.Version from a variable to a function that calls debug.ReadBuildInfo
if the new cli.version variable hasn't be set by the linker.

Closes #4370.
@nwt nwt requested a review from a team February 9, 2023 17:23
@nwt nwt merged commit 9350b5a into main Feb 9, 2023
@nwt nwt deleted the zed-serve-version branch February 9, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go install'd zed /version endpoint returns "unknown"
2 participants