mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-04 03:11:52 -05:00
461ff64579
When we added GetMany and HasMany, we didn't realize that requests could then be larger than the allowable HTTP form size. This patch makes the body of getRefs and hasRefs be serialized as binary instead, which addresses this issue and actually makes the request body more compact. Fixes #3589
33 lines
986 B
Go
33 lines
986 B
Go
// Copyright 2016 Attic Labs, Inc. All rights reserved.
|
|
// Licensed under the Apache License, version 2.0:
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
// Package constants collects common constants used in Noms, such as the Noms data format version.
|
|
package constants
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
const NomsVersion = "7.14"
|
|
const NOMS_VERSION_NEXT_ENV_NAME = "NOMS_VERSION_NEXT"
|
|
const NOMS_VERSION_NEXT_ENV_VALUE = "1"
|
|
|
|
var NomsGitSHA = "<developer build>"
|
|
|
|
func init() {
|
|
if os.Getenv(NOMS_VERSION_NEXT_ENV_NAME) != NOMS_VERSION_NEXT_ENV_VALUE {
|
|
fmt.Fprintln(os.Stderr,
|
|
"WARNING: This is an unstable version of Noms. Data created with it won't be supported.")
|
|
fmt.Fprintf(os.Stderr,
|
|
"Please see %s for getting the latest supported version.\n",
|
|
"https://github.com/attic-labs/noms#install-noms")
|
|
fmt.Fprintf(os.Stderr,
|
|
"Or add %s=%s to your environment to proceed with this version.\n",
|
|
NOMS_VERSION_NEXT_ENV_NAME,
|
|
NOMS_VERSION_NEXT_ENV_VALUE)
|
|
os.Exit(1)
|
|
}
|
|
}
|