Documentation
¶
Index ¶
Constants ¶
const ( InstallDir = "/tmp/railpack/mise" TestInstallDir = "/tmp/railpack/mise-test" IdiomaticVersionFileTools = "python,node,ruby,elixir,go,java,yarn,pnpm,bun,deno,dotnet,rust" // applied only to the first GetLatestVersion check to skip very recent releases MinimumReleaseAge = "14d" )
const (
ErrMiseGetLatestVersion = "failed to resolve version %s of %s"
)
Variables ¶
var Version string
Functions ¶
func GenerateMiseToml ¶
used by the container mise logic, but uses the package structs defined in this file
func IsTemporary ¶ added in v0.36.4
reports whether err (or anything it wraps) is a transient failure. Callers use this to decide whether retrying the whole operation makes sense.
Types ¶
type Mise ¶
type Mise struct {
// contains filtered or unexported fields
}
func (*Mise) GetAllVersions ¶ added in v0.0.31
func (*Mise) GetCurrentList ¶ added in v0.9.0
returns the JSON output of 'mise list --current --json' for the app.
ignoredConfigPaths are files in appDir that will not be in the build context. mise reads the directory itself, so a dockerignored mise.local.toml would otherwise override the committed toolchain. Paths are colon-separated, which is how mise parses MISE_IGNORED_CONFIG_PATHS.
type MiseConfig ¶
type MiseConfig struct {
Tools map[string]string `toml:"tools"`
Settings map[string]any `toml:"settings,omitempty"`
}
MiseConfig represents the overall mise configuration
type TemporaryError ¶ added in v0.36.4
TemporaryError marks a failure that is worth retrying: network transport errors, rate limits, and server-side errors. Deterministic failures (a 404 for a version that does not exist, a malformed archive) are never wrapped in this, since retrying them cannot succeed.
func (*TemporaryError) Error ¶ added in v0.36.4
func (e *TemporaryError) Error() string
func (*TemporaryError) Unwrap ¶ added in v0.36.4
func (e *TemporaryError) Unwrap() error