diff --git a/pkg/version/update.go b/pkg/version/update.go index 576fa73375..ff67a6a428 100644 --- a/pkg/version/update.go +++ b/pkg/version/update.go @@ -61,6 +61,14 @@ func CheckForUpdate( } q.Set("clientID", clientID) q.Set("InstallationID", InstallationID) + + // The BACALHAU_UPDATE_CHECKER_TEST is an env variable a user can set so that we can track + // when the binary is being run by a non-user, to enable easier filtering of queries + // to their update server for internal/CI. + if os.Getenv("BACALHAU_UPDATE_CHECKER_TEST") != "" { + q.Set("bacalhau_update_checker_test", "true") + } + u.RawQuery = q.Encode() req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil)