-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy path.mise.toml
More file actions
53 lines (47 loc) · 1.75 KB
/
Copy path.mise.toml
File metadata and controls
53 lines (47 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Tool versions managed by mise (https://mise.jdx.dev)
# Used by both Docker and native development environments.
# In Docker, this is copied into the mise config dir during image build.
# For native setup: install mise, then run `mise install` from this directory.
[tools]
ruby = "3.4.10"
prek = "0.4.14"
aube = "1.40.0"
uv = "0.12.5"
cmake = "4.4.2"
make = "4.4.1"
shellcheck = "0.11.0"
"github-cli" = "2.97.0"
[env]
RUBY_YJIT_ENABLE = "1"
# Disable the CHECKSUMS section in lockfiles — checksums can't be fully populated
# across all platforms (e.g. aarch64 variants on an x86 machine) so we opt out entirely.
BUNDLE_LOCKFILE_CHECKSUMS = "false"
[hooks]
# Temporary migration shim for existing users with symlinks from the old shared-env setup.
# This runs from existing post-merge/post-checkout hooks because they call `mise install`
# when .mise.toml changes. Remove after some time has passed and everyone has migrated.
postinstall = { shell = "bash -c", run = '''
root="${MISE_PROJECT_ROOT:-$PWD}"
if [[ -L "$root/.venv" ]]; then
venv_target=$(readlink "$root/.venv")
if [[ "$venv_target" == "${XDG_DATA_HOME:-$HOME/.local/share}/udb/venv-"* ]]; then
echo "mise: removing old shared .venv symlink"
rm -f "$root/.venv"
echo "mise: running uv sync"
"$root/bin/uv" sync
fi
fi
if [[ -L "$root/node_modules" ]]; then
node_modules_target=$(readlink "$root/node_modules")
if [[ "$node_modules_target" == "${XDG_DATA_HOME:-$HOME/.local/share}/udb/npm-"*/node_modules ]]; then
echo "mise: removing old shared node_modules symlink"
rm -f "$root/node_modules"
echo "mise: running aube ci"
"$root/bin/aube" ci
fi
fi
''' }
[settings]
idiomatic_version_file_enable_tools = ["node"]
ruby.compile = false
ruby.default_packages_file = ".default-gems"