mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(coderd): add provisioner build version and api_version on serve (#11369)
* assert provisioner daemon version and api_version in unit tests * add build info in HTTP header, extract codersdk.BuildVersionHeader * add api_version to codersdk.ProvisionerDaemon * testutil.MustString -> testutil.MustRandString
This commit is contained in:
@ -203,7 +203,7 @@ func (c *Client) HasFirstUser(ctx context.Context) (bool, error) {
|
||||
if res.StatusCode == http.StatusNotFound {
|
||||
// ensure we are talking to coder and not
|
||||
// some other service that returns 404
|
||||
v := res.Header.Get("X-Coder-Build-Version")
|
||||
v := res.Header.Get(BuildVersionHeader)
|
||||
if v == "" {
|
||||
return false, xerrors.Errorf("missing build version header, not a coder instance")
|
||||
}
|
||||
|
Reference in New Issue
Block a user